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
| 483 | // This collector captures errors instead of failing the test immediately, allowing us to |
| 484 | // verify the failure behavior at the end. |
| 485 | type errorCollector struct { |
| 486 | t *testing.T |
| 487 | expectFailure bool |
| 488 | hasErrors bool |
| 489 | errors []string |
| 490 | } |
| 491 | |
| 492 | func (c *errorCollector) Helper() {} |
| 493 |
nothing calls this directly
no outgoing calls
no test coverage detected