MCPcopy
hub / github.com/pocketbase/pocketbase / TestNewExternalAuth

Function TestNewExternalAuth

core/external_auth_model_test.go:12–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestNewExternalAuth(t *testing.T) {
13 t.Parallel()
14
15 app, _ := tests.NewTestApp()
16 defer app.Cleanup()
17
18 ea := core.NewExternalAuth(app)
19
20 if ea.Collection().Name != core.CollectionNameExternalAuths {
21 t.Fatalf("Expected record with %q collection, got %q", core.CollectionNameExternalAuths, ea.Collection().Name)
22 }
23}
24
25func TestExternalAuthProxyRecord(t *testing.T) {
26 t.Parallel()

Callers

nothing calls this directly

Calls 4

CleanupMethod · 0.95
NewTestAppFunction · 0.92
NewExternalAuthFunction · 0.92
CollectionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…