MCPcopy
hub / github.com/bettercap/bettercap / TestRunningState

Function TestRunningState

modules/api_rest/api_rest_test.go:228–238  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

226}
227
228func TestRunningState(t *testing.T) {
229 s := createMockSession(t)
230 mod := NewRestAPI(s)
231
232 // Initially should not be running
233 if mod.Running() {
234 t.Error("Module should not be running initially")
235 }
236
237 // Note: Cannot test actual Start/Stop without proper server setup
238}
239
240func TestRecordingState(t *testing.T) {
241 s := createMockSession(t)

Callers

nothing calls this directly

Calls 4

NewRestAPIFunction · 0.85
createMockSessionFunction · 0.70
RunningMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected