MCPcopy Index your code
hub / github.com/Masterminds/structable / TestActiveRecord

Function TestActiveRecord

structable_test.go:259–267  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

257}
258
259func TestActiveRecord(t *testing.T) {
260 db := &DBStub{}
261 a := NewActRec(db)
262 a.Id = 999
263
264 if a.Exists() {
265 t.Errorf("Expected record to be absent.")
266 }
267}
268
269func squirrelFixture() (*DBStub, squirrel.StatementBuilderType) {
270

Callers

nothing calls this directly

Calls 2

ExistsMethod · 0.95
NewActRecFunction · 0.85

Tested by

no test coverage detected