(t *testing.T)
| 314 | } |
| 315 | |
| 316 | func TestCreateConfigDefaultsDiskSizePerGPU(t *testing.T) { |
| 317 | config := &tui.CreateConfig{ |
| 318 | GPUType: "h100", |
| 319 | NumGPUs: 4, |
| 320 | Template: "base", |
| 321 | } |
| 322 | |
| 323 | templates := []api.TemplateEntry{ |
| 324 | tmplEntry("base", "Base"), |
| 325 | } |
| 326 | |
| 327 | err := validateCreateConfig(config, templates, []api.Snapshot{}, false, testSpecStore()) |
| 328 | require.NoError(t, err) |
| 329 | |
| 330 | assert.Equal(t, 400, config.DiskSizeGB) |
| 331 | } |
| 332 | |
| 333 | func TestCreateConfigDefaultDiskSizeRespectsSnapshotMinimum(t *testing.T) { |
| 334 | config := &tui.CreateConfig{ |
nothing calls this directly
no test coverage detected