Skip to content

Commit

Permalink
remove irrelevant unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xitonix committed Jul 19, 2019
1 parent 5092e07 commit 1a1a32d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
13 changes: 0 additions & 13 deletions bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1623,19 +1623,6 @@ func TestBucket_StringMap(t *testing.T) {
}
}

func TestBucket_StringSliceMap(t *testing.T) {
bucket := NewBucket()
bucket.StringSliceMap("long", "usage")
actual := len(bucket.Flags())
if actual != 1 {
t.Errorf("Expected to get 1 parsed flag, but received %d", actual)
}
f := bucket.Flags()[0]
if _, ok := f.(*core.StringSliceMapFlag); !ok {
t.Errorf("Expected %T, but received %T", &core.StringSliceMapFlag{}, f)
}
}

func TestBucket_Int(t *testing.T) {
bucket := NewBucket()
bucket.Int("long", "usage")
Expand Down
13 changes: 0 additions & 13 deletions global_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,19 +308,6 @@ func TestGlobalStringMap(t *testing.T) {
}
}

func TestGlobalStringSliceMap(t *testing.T) {
DefaultBucket = NewBucket()
StringSliceMap("long", "usage")
actual := len(DefaultBucket.Flags())
if actual != 1 {
t.Errorf("Expected to get 1 parsed flag, but received %d", actual)
}
f := DefaultBucket.Flags()[0]
if _, ok := f.(*core.StringSliceMapFlag); !ok {
t.Errorf("Expected %T, but received %T", &core.StringSliceMapFlag{}, f)
}
}

func TestGlobalInt(t *testing.T) {
DefaultBucket = NewBucket()
Int("long", "usage")
Expand Down

0 comments on commit 1a1a32d

Please sign in to comment.