(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestStatementBuilderPlaceholderFormat(t *testing.T) { |
| 20 | db := &DBStub{} |
| 21 | sb := StatementBuilder.RunWith(db).PlaceholderFormat(Dollar) |
| 22 | |
| 23 | sb.Select("test").Where("x = ?").Exec() |
| 24 | assert.Equal(t, "SELECT test WHERE x = $1", db.LastExecSql) |
| 25 | } |
| 26 | |
| 27 | func TestRunWithDB(t *testing.T) { |
| 28 | db := &sql.DB{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…