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

Function TestInMemoryRefreshTokenStore_GetNonExistent

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

Source from the content-addressed store, hash-verified

98}
99
100func TestInMemoryRefreshTokenStore_GetNonExistent(t *testing.T) {
101 store := NewInMemoryRefreshTokenStore()
102
103 _, err := store.Get(context.Background(), "nonexistent")
104 if err != ErrRefreshTokenNotFound {
105 t.Fatalf("Expected ErrRefreshTokenNotFound, got: %v", err)
106 }
107}
108
109func TestInMemoryRefreshTokenStore_GetEmptyToken(t *testing.T) {
110 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…