diff options
Diffstat (limited to 'pkgtools/pkglint/files/parser_test.go')
-rw-r--r-- | pkgtools/pkglint/files/parser_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgtools/pkglint/files/parser_test.go b/pkgtools/pkglint/files/parser_test.go index f50288e214b..fe762954cc0 100644 --- a/pkgtools/pkglint/files/parser_test.go +++ b/pkgtools/pkglint/files/parser_test.go @@ -5,6 +5,7 @@ import ( ) func (s *Suite) Test_Parser_PkgbasePattern(c *check.C) { + checkRest := func(pattern, expected, rest string) { parser := NewParser(dummyLine, pattern, false) actual := parser.PkgbasePattern() @@ -29,6 +30,7 @@ func (s *Suite) Test_Parser_Dependency(c *check.C) { c.Check(parser.Rest(), equals, rest) } } + check := func(pattern string, expected DependencyPattern) { checkRest(pattern, expected, "") } |