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

Function TestNewShellModule_Name

internal/bridge/module_shell_test.go:280–285  ·  view source on GitHub ↗

--------------------------------------------------------------------------- NewShellModule constructor test ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

278// ---------------------------------------------------------------------------
279
280func TestNewShellModule_Name(t *testing.T) {
281 m := NewShellModule(consts.ModuleNetstat, consts.ModuleNetstat, netstatCommand, netstatResponse)
282 if m.Name() != consts.ModuleNetstat {
283 t.Errorf("Name: got %q, want %q", m.Name(), consts.ModuleNetstat)
284 }
285}

Callers

nothing calls this directly

Calls 2

NameMethod · 0.95
NewShellModuleFunction · 0.85

Tested by

no test coverage detected