MCPcopy
hub / github.com/sqldef/sqldef / errorCollector

Struct errorCollector

testutil/testutil.go:485–490  ·  view source on GitHub ↗

errorCollector is used to intercept test failures when running in "expect failure" mode. When a test's flavor doesn't match the current environment, we expect the test to fail. This collector captures errors instead of failing the test immediately, allowing us to verify the failure behavior at the e

Source from the content-addressed store, hash-verified

483// This collector captures errors instead of failing the test immediately, allowing us to
484// verify the failure behavior at the end.
485type errorCollector struct {
486 t *testing.T
487 expectFailure bool
488 hasErrors bool
489 errors []string
490}
491
492func (c *errorCollector) Helper() {}
493

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected