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

Function TestIsInjectedID

internal/toolinjection/injection_test.go:68–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestIsInjectedID(t *testing.T) {
69 if IsInjectedID("call_abc123") {
70 t.Error("should not match regular ID")
71 }
72 if !IsInjectedID("call_cpa_inject_deadbeef") {
73 t.Error("should match injected ID")
74 }
75}
76
77func TestShouldInject_OpenAI_Match(t *testing.T) {
78 rawJSON := []byte(`{

Callers

nothing calls this directly

Calls 2

IsInjectedIDFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected