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

Function TestMatchProvider

internal/watcher/watcher_test.go:108–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

106}
107
108func TestMatchProvider(t *testing.T) {
109 if _, ok := matchProvider("OpenAI", []string{"openai", "claude"}); !ok {
110 t.Fatal("expected match to succeed ignoring case")
111 }
112 if _, ok := matchProvider("missing", []string{"openai"}); ok {
113 t.Fatal("expected match to fail for unknown provider")
114 }
115}
116
117func TestSnapshotCoreAuths_ConfigAndAuthFiles(t *testing.T) {
118 authDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

matchProviderFunction · 0.85

Tested by

no test coverage detected