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

Function TestRecordBaseFilesPath

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

Source from the content-addressed store, hash-verified

133}
134
135func TestRecordBaseFilesPath(t *testing.T) {
136 t.Parallel()
137
138 collection := core.NewBaseCollection("test")
139
140 m := core.NewRecord(collection)
141 m.Id = "abc"
142
143 result := m.BaseFilesPath()
144 expected := collection.BaseFilesPath() + "/" + m.Id
145 if result != expected {
146 t.Fatalf("Expected %q, got %q", expected, result)
147 }
148}
149
150func TestRecordOriginal(t *testing.T) {
151 t.Parallel()

Callers

nothing calls this directly

Calls 4

BaseFilesPathMethod · 0.95
NewBaseCollectionFunction · 0.92
NewRecordFunction · 0.92
BaseFilesPathMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…