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

Function TestFirstArg_FromArgs

internal/bridge/module_shell_test.go:234–239  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Helper function tests ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

232// ---------------------------------------------------------------------------
233
234func TestFirstArg_FromArgs(t *testing.T) {
235 req := &implantpb.Request{Args: []string{"a", "b"}}
236 if got := firstArg(req); got != "a" {
237 t.Errorf("firstArg from Args: got %q", got)
238 }
239}
240
241func TestFirstArg_FromInput(t *testing.T) {
242 req := &implantpb.Request{Input: "fallback"}

Callers

nothing calls this directly

Calls 1

firstArgFunction · 0.85

Tested by

no test coverage detected