fixedUserResolver is a tiny helper for the unit tests that need a deterministic user without standing up the auth middleware.
(u *models.User)
| 21 | // fixedUserResolver is a tiny helper for the unit tests that need a |
| 22 | // deterministic user without standing up the auth middleware. |
| 23 | func 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 |
no outgoing calls
no test coverage detected