MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / TestCollectionQuery

Function TestCollectionQuery

core/collection_query_test.go:20–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18)
19
20func TestCollectionQuery(t *testing.T) {
21 t.Parallel()
22
23 app, _ := tests.NewTestApp()
24 defer app.Cleanup()
25
26 expected := "SELECT {{_collections}}.* FROM `_collections`"
27
28 sql := app.CollectionQuery().Build().SQL()
29 if sql != expected {
30 t.Errorf("Expected sql %s, got %s", expected, sql)
31 }
32}
33
34func TestReloadCachedCollections(t *testing.T) {
35 t.Parallel()

Callers

nothing calls this directly

Calls 4

CleanupMethod · 0.95
NewTestAppFunction · 0.92
CollectionQueryMethod · 0.65
BuildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…