MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / fixedUserResolver

Function fixedUserResolver

internal/mcp/dispatch_http_test.go:23–25  ·  view source on GitHub ↗

fixedUserResolver is a tiny helper for the unit tests that need a deterministic user without standing up the auth middleware.

(u *models.User)

Source from the content-addressed store, hash-verified

21// fixedUserResolver is a tiny helper for the unit tests that need a
22// deterministic user without standing up the auth middleware.
23func fixedUserResolver(u *models.User) func(context.Context) *models.User {
24 return func(_ context.Context) *models.User { return u }
25}
26
27// recordingHandler captures the request the dispatcher synthesizes so
28// the unit tests can assert on method/path/body/context without

Calls

no outgoing calls

Tested by

no test coverage detected