MCPcopy
hub / github.com/keploy/keploy / String

Method String

pkg/agent/proxy/supervisor/status.go:23–40  ·  view source on GitHub ↗

String returns a short lowercase label suitable for logs and metrics.

()

Source from the content-addressed store, hash-verified

21
22// String returns a short lowercase label suitable for logs and metrics.
23func (s Status) String() string {
24 switch s {
25 case StatusOK:
26 return "ok"
27 case StatusError:
28 return "error"
29 case StatusPanicked:
30 return "panicked"
31 case StatusHung:
32 return "hung"
33 case StatusMemCap:
34 return "mem_cap"
35 case StatusCanceled:
36 return "canceled"
37 default:
38 return "unknown"
39 }
40}
41
42// Result is returned from Supervisor.Run. Callers use it to decide what
43// to do with the connection next: a clean StatusOK / StatusError lets

Callers 8

MarkMockIncompleteMethod · 0.45
emitMockCoreMethod · 0.45
RunMethod · 0.45
classifyReturnMethod · 0.45
reportPanicMethod · 0.45
fireOnAbortMethod · 0.45
AddMockMethod · 0.45
ResolveRangeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected