Update rules/rules_test.go

test naming convention

Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
This commit is contained in:
Tiger Nie 2020-11-18 22:37:09 +08:00 committed by GitHub
parent 324113a0fe
commit b78665b46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ func TestMatchHidden(t *testing.T) {
"/Dockerfile": false,
}
for path, truth := range cases {
for path, want := range cases {
got := MatchHidden(path)
if got != truth {
t.Errorf("MatchHidden(%s)=%v; want %v", path, got, truth)