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

Function TestSecondArg

internal/bridge/modules_test.go:581–592  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

579}
580
581func TestSecondArg(t *testing.T) {
582 t.Parallel()
583 if got := secondArg(nil); got != "" {
584 t.Errorf("secondArg(nil) = %q, want empty", got)
585 }
586 if got := secondArg(&implantpb.Request{Args: []string{"one"}}); got != "" {
587 t.Errorf("secondArg(one arg) = %q, want empty", got)
588 }
589 if got := secondArg(&implantpb.Request{Args: []string{"one", "two"}}); got != "two" {
590 t.Errorf("secondArg = %q, want two", got)
591 }
592}
593
594func TestIsWindows(t *testing.T) {
595 t.Parallel()

Callers

nothing calls this directly

Calls 1

secondArgFunction · 0.85

Tested by

no test coverage detected