MCPcopy
hub / github.com/pocketbase/pocketbase / TestExternalAuthUpdated

Function TestExternalAuthUpdated

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

Source from the content-addressed store, hash-verified

153}
154
155func TestExternalAuthUpdated(t *testing.T) {
156 t.Parallel()
157
158 app, _ := tests.NewTestApp()
159 defer app.Cleanup()
160
161 ea := core.NewExternalAuth(app)
162
163 if v := ea.Updated().String(); v != "" {
164 t.Fatalf("Expected empty updated, got %q", v)
165 }
166
167 now := types.NowDateTime()
168 ea.SetRaw("updated", now)
169
170 if v := ea.Updated().String(); v != now.String() {
171 t.Fatalf("Expected %q updated, got %q", now.String(), v)
172 }
173}
174
175func TestExternalAuthPreValidate(t *testing.T) {
176 t.Parallel()

Callers

nothing calls this directly

Calls 7

CleanupMethod · 0.95
UpdatedMethod · 0.95
NewTestAppFunction · 0.92
NewExternalAuthFunction · 0.92
NowDateTimeFunction · 0.92
SetRawMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…