From 257f4cb9050d29a38a992b814bd6e79e6f1bca99 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 16 Dec 2020 13:31:37 +0100 Subject: pkg/cmdprof: merge into pkg/tool cmdprof functionality seems to fit well into pkg/tool. --- pkg/tool/flags_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/tool/flags_test.go') diff --git a/pkg/tool/flags_test.go b/pkg/tool/flags_test.go index 6d52a4780..d818c6582 100644 --- a/pkg/tool/flags_test.go +++ b/pkg/tool/flags_test.go @@ -27,7 +27,7 @@ func TestParseFlags(t *testing.T) { {"", &Values{false, 1, "baz"}}, {"-foo -bar=2", &Values{true, 2, "baz"}}, {"-foo -bar=2 -qux", nil}, - {"-foo -bar=2 " + OptionalFlags(Flag{"qux", ""}), &Values{true, 2, "baz"}}, + {"-foo -bar=2 " + OptionalFlags([]Flag{{"qux", ""}}), &Values{true, 2, "baz"}}, } for i, test := range tests { t.Run(fmt.Sprint(i), func(t *testing.T) { @@ -41,7 +41,7 @@ func TestParseFlags(t *testing.T) { if args[0] == "" { args = args[1:] } - err := parseFlags(flags, args) + err := ParseFlags(flags, args) if test.vals == nil { if err == nil { t.Fatalf("parsing did not fail") -- cgit mrf-deployment