RecordHooks allows enterprise (or any consumer) to inject behaviour into the OSS recording pipeline — the same pattern as TestHooks for the replay service.
| 22 | // RecordHooks allows enterprise (or any consumer) to inject behaviour into the |
| 23 | // OSS recording pipeline — the same pattern as TestHooks for the replay service. |
| 24 | type RecordHooks interface { |
| 25 | BeforeTestCaseInsert(ctx context.Context, info *TestCaseContext) error |
| 26 | AfterTestCaseInsert(ctx context.Context, info *TestCaseContext) error |
| 27 | BeforeMockInsert(ctx context.Context, info *MockContext) error |
| 28 | AfterMockInsert(ctx context.Context, info *MockContext) error |
| 29 | } |
| 30 | |
| 31 | // BaseRecordHooks is an embeddable no-op implementation. |
| 32 | // Consumers embed this and override only the hooks they need. |
no outgoing calls
no test coverage detected