(t *testing.T)
| 120 | } |
| 121 | |
| 122 | func TestInjectNotRunning(t *testing.T) { |
| 123 | s := createMockSession(t) |
| 124 | mod := NewCanModule(s) |
| 125 | |
| 126 | // Test inject when not running |
| 127 | handlers := mod.Handlers() |
| 128 | for _, h := range handlers { |
| 129 | if h.Name == "can.inject FRAME_EXPRESSION" { |
| 130 | err := h.Exec([]string{"123#deadbeef"}) |
| 131 | if err == nil { |
| 132 | t.Error("Expected error when injecting while not running") |
| 133 | } |
| 134 | break |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func TestFuzzNotRunning(t *testing.T) { |
| 140 | s := createMockSession(t) |
nothing calls this directly
no test coverage detected