(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestCreateDiskInputSeedsFromGPUCount(t *testing.T) { |
| 43 | m := NewCreateModel(nil, createTestSpecStore()) |
| 44 | m.config.GPUType = "h100" |
| 45 | m.config.NumGPUs = 4 |
| 46 | m.setDefaultDiskSize() |
| 47 | m.step = stepDiskSize |
| 48 | m.initStep() |
| 49 | |
| 50 | if got := m.config.DiskSizeGB; got != 400 { |
| 51 | t.Fatalf("expected config disk size 400GB, got %dGB", got) |
| 52 | } |
| 53 | if got := m.diskInput.Value(); got != "400" { |
| 54 | t.Fatalf("expected disk input value 400, got %q", got) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // TestCreateModelSurvivesInputBeforeSpecsLoad guards the flagless interactive |
| 59 | // flow, where GPU specs load asynchronously after the TUI opens. The user can |
nothing calls this directly
no test coverage detected