MCPcopy
hub / github.com/pocketbase/pocketbase / TestExternalAuthProxyRecord

Function TestExternalAuthProxyRecord

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

Source from the content-addressed store, hash-verified

23}
24
25func TestExternalAuthProxyRecord(t *testing.T) {
26 t.Parallel()
27
28 record := core.NewRecord(core.NewBaseCollection("test"))
29 record.Id = "test_id"
30
31 ea := core.ExternalAuth{}
32 ea.SetProxyRecord(record)
33
34 if ea.ProxyRecord() == nil || ea.ProxyRecord().Id != record.Id {
35 t.Fatalf("Expected proxy record with id %q, got %v", record.Id, ea.ProxyRecord())
36 }
37}
38
39func TestExternalAuthRecordRef(t *testing.T) {
40 t.Parallel()

Callers

nothing calls this directly

Calls 4

SetProxyRecordMethod · 0.95
ProxyRecordMethod · 0.95
NewRecordFunction · 0.92
NewBaseCollectionFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…