(mode, gpuType, numGPUs, cpuCores string, storage int)
| 16 | } |
| 17 | |
| 18 | func modifyInstance(mode, gpuType, numGPUs, cpuCores string, storage int) *api.Instance { |
| 19 | return &api.Instance{ |
| 20 | ID: "test-1", |
| 21 | UUID: "uuid-1", |
| 22 | Name: "test-instance", |
| 23 | Status: "RUNNING", |
| 24 | GPUType: gpuType, |
| 25 | NumGPUs: numGPUs, |
| 26 | CPUCores: cpuCores, |
| 27 | Storage: storage, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // modifyCmd creates a fresh cobra command with modify flags for testing. |
| 32 | func newModifyCmd() *cobra.Command { |
no outgoing calls
no test coverage detected