MCPcopy
hub / github.com/mudler/LocalAI / middleware_test.go

File middleware_test.go

core/http/auth/middleware_test.go:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1//go:build auth
2
3package auth_test
4

Callers

nothing calls this directly

Calls 15

NewApplicationConfigFunction · 0.92
CreateAPIKeyFunction · 0.92
HashAPIKeyFunction · 0.92
RevokeAPIKeyFunction · 0.92
MiddlewareFunction · 0.92
GetUserFunction · 0.92
GetSourceFunction · 0.92
GetAPIKeyFunction · 0.92
ContextStruct · 0.85
newAuthTestAppFunction · 0.85
doRequestFunction · 0.85
withBearerTokenFunction · 0.85

Tested by

no test coverage detected