MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestStorage_Client_NotFound

Function TestStorage_Client_NotFound

internal/oauth/storage_test.go:352–360  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

350}
351
352func TestStorage_Client_NotFound(t *testing.T) {
353 st, _, _, _, _ := setup(t)
354 ctx := context.Background()
355
356 _, err := st.GetClient(ctx, "mcp_does_not_exist")
357 if !errors.Is(err, fosite.ErrInvalidClient) {
358 t.Errorf("err = %v, want fosite.ErrInvalidClient", err)
359 }
360}
361
362func TestStorage_Session_RoundTrip(t *testing.T) {
363 st, _, _, userID, clientID := setup(t)

Callers

nothing calls this directly

Calls 2

setupFunction · 0.85
GetClientMethod · 0.80

Tested by

no test coverage detected