(t *testing.T)
| 338 | } |
| 339 | |
| 340 | func TestSimultaneousDeleteRenameCreate(t *testing.T) { |
| 341 | // Add bar and foo |
| 342 | rt, id := testruntime.NewInstance(t) |
| 343 | testruntime.PutFiles(t, rt, id, map[string]string{ |
| 344 | "/models/bar.sql": `SELECT 10`, |
| 345 | "/models/foo.sql": `SELECT 20`, |
| 346 | }) |
| 347 | testruntime.ReconcileParserAndWait(t, rt, id) |
| 348 | testruntime.RequireReconcileState(t, rt, id, 3, 0, 0) |
| 349 | |
| 350 | // Delete bar, rename foo to foo_two, add bazz |
| 351 | testruntime.DeleteFiles(t, rt, id, |
| 352 | "/models/bar.sql", |
| 353 | "/models/foo.sql", |
| 354 | ) |
| 355 | testruntime.PutFiles(t, rt, id, map[string]string{ |
| 356 | "/models/foo_two.sql": `SELECT 20`, |
| 357 | "/models/bazz.sql": `SELECT 30`, |
| 358 | }) |
| 359 | testruntime.ReconcileParserAndWait(t, rt, id) |
| 360 | testruntime.RequireReconcileState(t, rt, id, 3, 0, 0) |
| 361 | |
| 362 | testruntime.RequireNoOLAPTable(t, rt, id, "bar") |
| 363 | testruntime.RequireOLAPTable(t, rt, id, "foo_two") |
| 364 | testruntime.RequireOLAPTable(t, rt, id, "bazz") |
| 365 | } |
| 366 | |
| 367 | func TestCacheInvalidation(t *testing.T) { |
| 368 | // Add source and model |
nothing calls this directly
no test coverage detected