MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestExitCodes

Function TestExitCodes

server/parent_test.go:235–246  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

233 // Expected
234 case <-time.After(100 * time.Millisecond):
235 t.Error("WaitAll did not return after children were done")
236 }
237}
238
239func TestExitCodes(t *testing.T) {
240 // Verify exit code constants
241 if ExitSuccess != 0 {
242 t.Errorf("ExitSuccess should be 0, got %d", ExitSuccess)
243 }
244 if ExitError != 1 {
245 t.Errorf("ExitError should be 1, got %d", ExitError)
246 }
247 if ExitAuthFailure != 10 {
248 t.Errorf("ExitAuthFailure should be 10, got %d", ExitAuthFailure)
249 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected