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

Function TestCreateConfigDefaultsDiskSizePerGPU

cmd/create_test.go:316–331  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

314}
315
316func 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
333func TestCreateConfigDefaultDiskSizeRespectsSnapshotMinimum(t *testing.T) {
334 config := &tui.CreateConfig{

Callers

nothing calls this directly

Calls 3

tmplEntryFunction · 0.85
validateCreateConfigFunction · 0.85
testSpecStoreFunction · 0.70

Tested by

no test coverage detected