neonvm-controller: introduce unit tests (#935) #2868
Annotations
7 errors and 1 warning
neonvm/controllers/vm_controller_unit_test.go#L61
cannot use lo.ToPtr(vmv1.MilliCPU(1000)) (value of type *"github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU) as "github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU value in struct literal
|
neonvm/controllers/vm_controller_unit_test.go#L62
cannot use lo.ToPtr(vmv1.MilliCPU(2000)) (value of type *"github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU) as "github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU value in struct literal
|
neonvm/controllers/vm_controller_unit_test.go#L63
cannot use lo.ToPtr(vmv1.MilliCPU(1500)) (value of type *"github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU) as "github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU value in struct literal
|
neonvm/controllers/vm_controller_unit_test.go#L66
cannot use lo.ToPtr(int32(1)) (value of type *int32) as int32 value in struct literal
|
neonvm/controllers/vm_controller_unit_test.go#L67
cannot use lo.ToPtr(int32(32)) (value of type *int32) as int32 value in struct literal
|
neonvm/controllers/vm_controller_unit_test.go#L68
cannot use lo.ToPtr(int32(2)) (value of type *int32) as int32 value in struct literal
|
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
This job failed
Loading