(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func 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 | |
| 48 | type fakeBaseRunner struct{} |
| 49 |