(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func TestToken(t *testing.T) { |
| 28 | os.Setenv("GOTRUE_RATE_LIMIT_HEADER", "My-Custom-Header") |
| 29 | api, config, instanceID, err := setupAPIForTestForInstance() |
| 30 | require.NoError(t, err) |
| 31 | |
| 32 | ts := &TokenTestSuite{ |
| 33 | API: api, |
| 34 | Config: config, |
| 35 | instanceID: instanceID, |
| 36 | } |
| 37 | defer api.db.Close() |
| 38 | |
| 39 | suite.Run(t, ts) |
| 40 | } |
| 41 | |
| 42 | func (ts *TokenTestSuite) SetupTest() { |
| 43 | models.TruncateAll(ts.API.db) |
nothing calls this directly
no test coverage detected
searching dependent graphs…