(t *testing.T)
| 260 | } |
| 261 | |
| 262 | func TestProviderExecEmptyQuery(t *testing.T) { |
| 263 | p := NewProvider(&testFieldResolver{}). |
| 264 | Query(nil) |
| 265 | |
| 266 | _, err := p.Exec(&[]testTableStruct{}) |
| 267 | if err == nil { |
| 268 | t.Fatalf("Expected error with empty query, got nil") |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | func TestProviderExecNonEmptyQuery(t *testing.T) { |
| 273 | testDB, err := createTestDB() |
nothing calls this directly
no test coverage detected
searching dependent graphs…