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

Function TestCreateFlagsDoNotRequireDisk

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

Source from the content-addressed store, hash-verified

36}
37
38func TestCreateFlagsDoNotRequireDisk(t *testing.T) {
39 cmd := &cobra.Command{}
40 cmd.Flags().String("gpu", "", "")
41 cmd.Flags().String("template", "", "")
42 cmd.Flags().String("snapshot", "", "")
43 cmd.Flags().Int("num-gpus", 0, "")
44 cmd.Flags().Int("vcpus", 0, "")
45 cmd.Flags().Int("disk", 0, "")
46 cmd.Flags().Int("disk-size-gb", 0, "")
47
48 require.NoError(t, cmd.Flags().Set("gpu", "h100"))
49 require.NoError(t, cmd.Flags().Set("template", "base"))
50 require.NoError(t, cmd.Flags().Set("num-gpus", "4"))
51
52 assert.Empty(t, missingCreateFlags(cmd))
53}
54
55// TestValidateCreateConfig provides comprehensive validation testing for instance
56// creation configurations, covering routed 1/2 and 4/8 GPU counts with various

Callers

nothing calls this directly

Calls 1

missingCreateFlagsFunction · 0.85

Tested by

no test coverage detected