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

Function TestGlobal

internal/observedtools/store_test.go:88–96  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestGlobal(t *testing.T) {
89 g := Global()
90 if g == nil {
91 t.Fatal("Global() returned nil")
92 }
93 if g != Global() {
94 t.Error("Global() should return the same instance")
95 }
96}

Callers

nothing calls this directly

Calls 2

GlobalFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected