Revert main_test
This commit is contained in:
parent
a9c758e55f
commit
67f293a1e5
@ -80,9 +80,8 @@ func genFlagType() *main.FlagType {
|
|||||||
Type: "bool",
|
Type: "bool",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
TypeName: "YeOldeBlerfFlag",
|
TypeName: "YeOldeBlerfFlag",
|
||||||
ValuePointer: true,
|
ValuePointer: true,
|
||||||
DestinationPointer: true,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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) {
|
func TestFlagType_GenerateFmtStringerInterface(t *testing.T) {
|
||||||
ft := genFlagType()
|
ft := genFlagType()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user