fakeDatabase satisfies AppServiceDatabase by directly executing the callback without a real DB transaction — suitable for unit tests that use in-memory fakes.
| 131 | // fakeDatabase satisfies AppServiceDatabase by directly executing the callback |
| 132 | // without a real DB transaction — suitable for unit tests that use in-memory fakes. |
| 133 | type fakeDatabase struct{} |
| 134 | |
| 135 | func (fakeDatabase) WithTx(ctx context.Context, do func(context.Context) error) error { |
| 136 | return do(ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected