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

Function TestSecondArg_Adapter

internal/bridge/module_shell_test.go:254–262  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

252}
253
254func TestSecondArg_Adapter(t *testing.T) {
255 req := &implantpb.Request{Args: []string{"a", "b"}}
256 if got := secondArg(req); got != "b" {
257 t.Errorf("secondArg: got %q", got)
258 }
259 if got := secondArg(&implantpb.Request{Args: []string{"a"}}); got != "" {
260 t.Errorf("secondArg single: got %q", got)
261 }
262}
263
264func TestIsWindows_Adapter(t *testing.T) {
265 if !isWindows("Windows") {

Callers

nothing calls this directly

Calls 1

secondArgFunction · 0.85

Tested by

no test coverage detected