MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestCandidateDirs

Function TestCandidateDirs

internal/pluginhost/platform_test.go:11–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func 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
27func TestPluginExtensionForPlatform(t *testing.T) {
28 cases := []struct {

Callers

nothing calls this directly

Calls 1

candidateDirsFunction · 0.85

Tested by

no test coverage detected