From 01b08739b31385d8aff2009f0594260079b584e7 Mon Sep 17 00:00:00 2001 From: Jesse van den Kieboom Date: Sat, 15 Jun 2024 11:49:19 +0200 Subject: [PATCH] Remove test that does not pass vet --- tag_test.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 tag_test.go diff --git a/tag_test.go b/tag_test.go deleted file mode 100644 index 2c34323..0000000 --- a/tag_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package flags - -import ( - "testing" -) - -func TestTagMissingColon(t *testing.T) { - var opts = struct { - TestValue bool `short` - }{} - - assertParseFail(t, ErrTag, "expected `:' after key name, but got end of tag (in `short`)", &opts, "") -} - -func TestTagMissingValue(t *testing.T) { - var opts = struct { - TestValue bool `short:` - }{} - - assertParseFail(t, ErrTag, "expected `\"' to start tag value at end of tag (in `short:`)", &opts, "") -} - -func TestTagMissingQuote(t *testing.T) { - var opts = struct { - TestValue bool `short:"v` - }{} - - assertParseFail(t, ErrTag, "expected end of tag value `\"' at end of tag (in `short:\"v`)", &opts, "") -} - -func TestTagNewline(t *testing.T) { - var opts = struct { - TestValue bool `long:"verbose" description:"verbose -something"` - }{} - - assertParseFail(t, ErrTag, "unexpected newline in tag value `description' (in `long:\"verbose\" description:\"verbose\nsomething\"`)", &opts, "") -}