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

Function createTestSpecStore

tui/create_test.go:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func createTestSpecStore() *utils.SpecStore {
14 return utils.NewSpecStore(map[string]api.GpuSpecConfig{
15 "h100_x1": {GpuCount: 1, VcpuOptions: []int{15}, StorageGB: api.StorageRange{Min: 100, Max: 500}},
16 "h100_x2": {GpuCount: 2, VcpuOptions: []int{30}, StorageGB: api.StorageRange{Min: 100, Max: 1000}},
17 "h100_x4": {GpuCount: 4, VcpuOptions: []int{60}, StorageGB: api.StorageRange{Min: 100, Max: 2000}},
18 })
19}
20
21func TestCreateDefaultDiskSizeUsesFreeStoragePerGPU(t *testing.T) {
22 m := NewCreateModel(nil, createTestSpecStore())

Calls 1

NewSpecStoreFunction · 0.92

Tested by

no test coverage detected