relax validity tests to break on slash
Change-Id: I1578a0aa77ee1fc957bb9a93690ed92633d3a65a
This commit is contained in:
@@ -113,6 +113,13 @@ func TestValid(t *testing.T) {
|
||||
in: "foo/bar/baz",
|
||||
want: true,
|
||||
},
|
||||
{
|
||||
pkgs: []Package{
|
||||
{Path: "a/b"},
|
||||
},
|
||||
in: "a/bb",
|
||||
want: true,
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
got := Valid(test.in, test.pkgs)
|
||||
|
||||
Reference in New Issue
Block a user