GenerateMockShow takes scenes/avgCuesPerScene/avgBlocksPerCue instead of fixed cue/block counts

This commit is contained in:
Ian Gulliver
2026-02-20 22:39:29 -07:00
parent 7d3a23dfc1
commit b527b94b16
3 changed files with 7 additions and 32 deletions

View File

@@ -7,7 +7,7 @@ import (
func TestBuildTimelineFromMockShow(t *testing.T) {
t0 := time.Now()
show := GenerateMockShow(5, 100, 1000)
show := GenerateMockShow(5, 20, 4, 5)
t.Logf("GenerateMockShow: %v (%d blocks, %d triggers)", time.Since(t0), len(show.Blocks), len(show.Triggers))
t1 := time.Now()
@@ -26,7 +26,7 @@ func TestBuildTimelineFromMockShow(t *testing.T) {
}
func BenchmarkBuildTimeline(b *testing.B) {
show := GenerateMockShow(5, 100, 1000)
show := GenerateMockShow(5, 20, 4, 5)
if err := show.Validate(); err != nil {
b.Fatal(err)
}