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

Function TestTask_Get

internal/bridge/taskmanager_test.go:73–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestTask_Get(t *testing.T) {
74 tm := NewTaskManager()
75 tm.Create("sess-1", 1, "exec")
76
77 if tm.Get("sess-1", 1) == nil {
78 t.Error("Get should find existing task")
79 }
80 if tm.Get("sess-1", 999) != nil {
81 t.Error("Get should return nil for nonexistent task")
82 }
83 if tm.Get("nonexistent", 1) != nil {
84 t.Error("Get should return nil for nonexistent session")
85 }
86}
87
88func TestTask_BindCommand_MultipleCommands(t *testing.T) {
89 tm := NewTaskManager()

Callers

nothing calls this directly

Calls 4

CreateMethod · 0.95
GetMethod · 0.95
NewTaskManagerFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected