MCPcopy
hub / github.com/appleboy/gin-jwt / TestFactory_CreateStore_DefaultConfig

Function TestFactory_CreateStore_DefaultConfig

store/factory_test.go:20–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestFactory_CreateStore_DefaultConfig(t *testing.T) {
21 factory := NewFactory()
22
23 store, err := factory.CreateStore(nil)
24
25 assert.NoError(t, err)
26 assert.NotNil(t, store)
27 assert.IsType(t, &InMemoryRefreshTokenStore{}, store)
28}
29
30func TestNewStore_Memory(t *testing.T) {
31 config := NewMemoryConfig()

Callers

nothing calls this directly

Calls 2

CreateStoreMethod · 0.95
NewFactoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…