MCPcopy
hub / github.com/Masterminds/squirrel / TestRunWithTx

Function TestRunWithTx

statement_test.go:38–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestRunWithTx(t *testing.T) {
39 tx := &sql.Tx{}
40 assert.NotPanics(t, func() {
41 builder.GetStruct(Select().RunWith(tx))
42 builder.GetStruct(Insert("t").RunWith(tx))
43 builder.GetStruct(Update("t").RunWith(tx))
44 builder.GetStruct(Delete("t").RunWith(tx))
45 }, "RunWith(*sql.Tx) should not panic")
46}
47
48type fakeBaseRunner struct{}
49

Callers

nothing calls this directly

Calls 5

SelectFunction · 0.85
InsertFunction · 0.85
UpdateFunction · 0.85
DeleteFunction · 0.85
RunWithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…