MCPcopy
hub / github.com/ory/kratos / MockSessionCreateHandler

Function MockSessionCreateHandler

pkg/testhelpers/handler_mock.go:191–195  ·  view source on GitHub ↗
(t *testing.T, reg mockDeps)

Source from the content-addressed store, hash-verified

189}
190
191func MockSessionCreateHandler(t *testing.T, reg mockDeps) (http.HandlerFunc, *session.Session) {
192 return MockSessionCreateHandlerWithIdentity(t, reg, &identity.Identity{
193 ID: x.NewUUID(), State: identity.StateActive, Traits: identity.Traits(`{"baz":"bar","foo":true,"bar":2.5}`),
194 })
195}

Callers 2

TestIsNotAuthenticatedFunction · 0.92
TestIsAuthenticatedFunction · 0.92

Calls 3

NewUUIDFunction · 0.92
TraitsTypeAlias · 0.92

Tested by 2

TestIsNotAuthenticatedFunction · 0.74
TestIsAuthenticatedFunction · 0.74