MCPcopy
hub / github.com/authgear/authgear-server / fakeDatabase

Struct fakeDatabase

pkg/siteadmin/service/app_test.go:133–133  ·  view source on GitHub ↗

fakeDatabase satisfies AppServiceDatabase by directly executing the callback without a real DB transaction — suitable for unit tests that use in-memory fakes.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected