MCPcopy Create free account
hub / github.com/supabase/auth / SetupTest

Method SetupTest

internal/api/hooks_test.go:68–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func (ts *HooksTestSuite) SetupTest() {
69 models.TruncateAll(ts.API.db)
70 u, err := models.NewUser("123456789", "testemail@gmail.com", "securetestpassword", ts.Config.JWT.Aud, nil)
71 require.NoError(ts.T(), err, "Error creating test user model")
72 require.NoError(ts.T(), ts.API.db.Create(u), "Error saving new test user")
73 ts.TestUser = u
74}
75
76func (ts *HooksTestSuite) TestRunHTTPHook() {
77 // setup mock requests for hooks

Callers

nothing calls this directly

Calls 2

TruncateAllFunction · 0.92
NewUserFunction · 0.92

Tested by

no test coverage detected