MCPcopy
hub / github.com/pocketbase/pocketbase / TestRecordCollection

Function TestRecordCollection

core/record_model_test.go:46–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestRecordCollection(t *testing.T) {
47 t.Parallel()
48
49 collection := core.NewBaseCollection("test")
50
51 m := core.NewRecord(collection)
52
53 if m.Collection().Name != collection.Name {
54 t.Fatalf("Expected collection with name %q, got %q", collection.Name, m.Collection().Name)
55 }
56}
57
58func TestRecordTableName(t *testing.T) {
59 t.Parallel()

Callers

nothing calls this directly

Calls 3

CollectionMethod · 0.95
NewBaseCollectionFunction · 0.92
NewRecordFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…