MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / mockServer

Struct mockServer

pkg/proxyhttp/server_group_test.go:69–75  ·  view source on GitHub ↗

mockServer is used to test the server group can start and stop multiple servers simultaneously.

Source from the content-addressed store, hash-verified

67// mockServer is used to test the server group can start
68// and stop multiple servers simultaneously.
69type mockServer struct {
70 started chan struct{}
71 startClosed bool
72 stopped chan struct{}
73 stopClosed bool
74 errors chan error
75}
76
77func newMockServer() *mockServer {
78 return &mockServer{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected