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

Function TestInMemoryRefreshTokenStore_GetEmptyToken

store/memory_test.go:109–116  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

107}
108
109func TestInMemoryRefreshTokenStore_GetEmptyToken(t *testing.T) {
110 store := NewInMemoryRefreshTokenStore()
111
112 _, err := store.Get(context.Background(), "")
113 if err != ErrRefreshTokenNotFound {
114 t.Fatalf("Expected ErrRefreshTokenNotFound for empty token, got: %v", err)
115 }
116}
117
118func TestInMemoryRefreshTokenStore_GetExpired(t *testing.T) {
119 store := NewInMemoryRefreshTokenStore()

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…