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

Function TestIncludedVCPUs

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

Source from the content-addressed store, hash-verified

94}
95
96func TestIncludedVCPUs(t *testing.T) {
97 s := testSpecStore()
98
99 assert.Equal(t, 4, s.IncludedVCPUs("a6000", 1))
100 assert.Equal(t, 8, s.IncludedVCPUs("a100xl", 2))
101 assert.Equal(t, 4, s.IncludedVCPUs("unknown", 1), "fallback to 4")
102}
103
104func TestRamPerVCPU(t *testing.T) {
105 s := testSpecStore()

Callers

nothing calls this directly

Calls 2

IncludedVCPUsMethod · 0.80
testSpecStoreFunction · 0.70

Tested by

no test coverage detected