MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / TestCreateDiskInputSeedsFromGPUCount

Function TestCreateDiskInputSeedsFromGPUCount

tui/create_test.go:42–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

40}
41
42func 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

Callers

nothing calls this directly

Calls 4

NewCreateModelFunction · 0.85
createTestSpecStoreFunction · 0.85
setDefaultDiskSizeMethod · 0.80
initStepMethod · 0.80

Tested by

no test coverage detected