(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestCandidateDirs(t *testing.T) { |
| 12 | got := candidateDirs("plugins", "darwin", "arm64") |
| 13 | want := []string{ |
| 14 | filepath.Join("plugins", "darwin", "arm64"), |
| 15 | "plugins", |
| 16 | } |
| 17 | if len(got) != len(want) { |
| 18 | t.Fatalf("len(candidateDirs) = %d, want %d", len(got), len(want)) |
| 19 | } |
| 20 | for index := range want { |
| 21 | if got[index] != want[index] { |
| 22 | t.Fatalf("candidateDirs[%d] = %q, want %q", index, got[index], want[index]) |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestPluginExtensionForPlatform(t *testing.T) { |
| 28 | cases := []struct { |
nothing calls this directly
no test coverage detected