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

Function TestFactory_CreateStore_Memory

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

Source from the content-addressed store, hash-verified

7)
8
9func TestFactory_CreateStore_Memory(t *testing.T) {
10 factory := NewFactory()
11
12 config := NewMemoryConfig()
13 store, err := factory.CreateStore(config)
14
15 assert.NoError(t, err)
16 assert.NotNil(t, store)
17 assert.IsType(t, &InMemoryRefreshTokenStore{}, store)
18}
19
20func TestFactory_CreateStore_DefaultConfig(t *testing.T) {
21 factory := NewFactory()

Callers

nothing calls this directly

Calls 3

CreateStoreMethod · 0.95
NewFactoryFunction · 0.85
NewMemoryConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…