(t *testing.T)
| 447 | } |
| 448 | |
| 449 | func initMonorepo(t *testing.T) string { |
| 450 | tempDir := t.TempDir() |
| 451 | |
| 452 | // Create project1 in monorepo |
| 453 | putFiles(t, tempDir, map[string]string{ |
| 454 | "project1/rill.yaml": `compiler: rillv1 |
| 455 | display_name: Monorepo Project 1 |
| 456 | olap_connector: duckdb`, |
| 457 | "project1/models/.gitkeep": "", |
| 458 | }) |
| 459 | |
| 460 | // Create project2 in monorepo |
| 461 | putFiles(t, tempDir, map[string]string{ |
| 462 | "project2/rill.yaml": `compiler: rillv1 |
| 463 | display_name: Monorepo Project 2 |
| 464 | olap_connector: duckdb`, |
| 465 | "project2/models/.gitkeep": "", |
| 466 | }) |
| 467 | |
| 468 | // Add root level README for the monorepo |
| 469 | putFiles(t, tempDir, map[string]string{ |
| 470 | "README.md": "# Test Monorepo\nThis is a test monorepo with multiple Rill projects.", |
| 471 | }) |
| 472 | |
| 473 | return tempDir |
| 474 | } |
| 475 | |
| 476 | // initGitWithTwoBranches initializes a git repository in dir with two branches: |
| 477 | // - "main" with models/model.sql = SELECT 'main' AS env |
no test coverage detected