MCPcopy
hub / github.com/keploy/keploy / EndTestErrorCapture

Method EndTestErrorCapture

pkg/agent/proxy/proxy.go:2902–2907  ·  view source on GitHub ↗

EndTestErrorCapture stops collecting errors and returns all accumulated errors.

()

Source from the content-addressed store, hash-verified

2900
2901// EndTestErrorCapture stops collecting errors and returns all accumulated errors.
2902func (p *Proxy) EndTestErrorCapture() []error {
2903 if acc := p.activeTestErrors.Swap(nil); acc != nil {
2904 return acc.drain()
2905 }
2906 return nil
2907}
2908
2909// GetErrorChannel returns the error channel for external monitoring.
2910// Once StartProxy has run, StartErrorDrain continuously drains this channel in a

Callers

nothing calls this directly

Implementers 1

Proxypkg/agent/proxy/proxy.go

Calls 2

SwapMethod · 0.80
drainMethod · 0.45

Tested by

no test coverage detected