MCPcopy Index your code
hub / github.com/rilldata/rill / initMonorepo

Function initMonorepo

cli/cmd/deploy/deploy_test.go:449–474  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

447}
448
449func 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
455display_name: Monorepo Project 1
456olap_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
463display_name: Monorepo Project 2
464olap_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

Callers 1

Calls 2

putFilesFunction · 0.70
TempDirMethod · 0.65

Tested by

no test coverage detected