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

Function TestVCPUOptions

utils/spec_store_test.go:88–94  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestVCPUOptions(t *testing.T) {
89 s := testSpecStore()
90
91 assert.Equal(t, []int{4, 6}, s.VCPUOptions("a6000", 1))
92 assert.Equal(t, []int{60}, s.VCPUOptions("a100xl", 4))
93 assert.Nil(t, s.VCPUOptions("unknown", 1))
94}
95
96func TestIncludedVCPUs(t *testing.T) {
97 s := testSpecStore()

Callers

nothing calls this directly

Calls 2

VCPUOptionsMethod · 0.80
testSpecStoreFunction · 0.70

Tested by

no test coverage detected