Skip to content

Commit

Permalink
Revert main_test
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Oct 6, 2022
1 parent a9c758e commit 67f293a
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions cmd/urfave-cli-genflags/main_test.go
Expand Up @@ -80,9 +80,8 @@ func genFlagType() *main.FlagType {
Type: "bool",
},
},
TypeName: "YeOldeBlerfFlag",
ValuePointer: true,
DestinationPointer: true,
TypeName: "YeOldeBlerfFlag",
ValuePointer: true,
},
}
}
Expand Down Expand Up @@ -116,21 +115,6 @@ func TestFlagType_ValuePointer(t *testing.T) {
}
}

func TestFlagType_DestinationPointer(t *testing.T) {
ft := genFlagType()

if !ft.DestinationPointer() {
t.Errorf("expected DestinationPointer to be true")
return
}

ft.Config = nil

if ft.DestinationPointer() {
t.Errorf("expected DestinationPointer to be false")
}
}

func TestFlagType_GenerateFmtStringerInterface(t *testing.T) {
ft := genFlagType()

Expand Down

0 comments on commit 67f293a

Please sign in to comment.