From 67f293a1e5388244ce0d7446320d7e54e4e6f839 Mon Sep 17 00:00:00 2001 From: Naveen Gogineni Date: Wed, 5 Oct 2022 22:18:45 -0400 Subject: [PATCH] Revert main_test --- cmd/urfave-cli-genflags/main_test.go | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/cmd/urfave-cli-genflags/main_test.go b/cmd/urfave-cli-genflags/main_test.go index 61563b1513..b5c9fee8ca 100644 --- a/cmd/urfave-cli-genflags/main_test.go +++ b/cmd/urfave-cli-genflags/main_test.go @@ -80,9 +80,8 @@ func genFlagType() *main.FlagType { Type: "bool", }, }, - TypeName: "YeOldeBlerfFlag", - ValuePointer: true, - DestinationPointer: true, + TypeName: "YeOldeBlerfFlag", + ValuePointer: 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) { ft := genFlagType()