Skip to content

Commit

Permalink
tests: more tests
Browse files Browse the repository at this point in the history
Signed-off-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
ldez committed Apr 2, 2024
1 parent 005b33c commit af86f45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/section/local_module_test.go
Expand Up @@ -10,7 +10,9 @@ func TestLocalModule_specificity(t *testing.T) {
testCases := []specificityTestData{
{"example.com/hello", &LocalModule{Path: "example.com/hello"}, specificity.LocalModule{}},
{"example.com/hello/world", &LocalModule{Path: "example.com/hello"}, specificity.LocalModule{}},
{"example.com/hello-test", &LocalModule{Path: "example.com/hello"}, specificity.MisMatch{}},
{"example.com/hello-world", &LocalModule{Path: "example.com/hello"}, specificity.MisMatch{}},
{"example.com/helloworld", &LocalModule{Path: "example.com/hello"}, specificity.MisMatch{}},
{"example.com", &LocalModule{Path: "example.com/hello"}, specificity.MisMatch{}},
}
testSpecificity(t, testCases)
}

0 comments on commit af86f45

Please sign in to comment.