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

Function TestInMemoryRefreshTokenStore_DeleteNonExistent

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

Source from the content-addressed store, hash-verified

169}
170
171func TestInMemoryRefreshTokenStore_DeleteNonExistent(t *testing.T) {
172 store := NewInMemoryRefreshTokenStore()
173
174 // Should not return error for deleting non-existent token
175 err := store.Delete(context.Background(), "nonexistent")
176 if err != nil {
177 t.Fatalf("Delete() should not return error for non-existent token, got: %v", err)
178 }
179}
180
181func TestInMemoryRefreshTokenStore_DeleteEmptyToken(t *testing.T) {
182 store := NewInMemoryRefreshTokenStore()

Callers

nothing calls this directly

Calls 2

DeleteMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…