MCPcopy
hub / github.com/rook/rook / Equal

Method Equal

pkg/daemon/multus/resources.go:270–284  ·  view source on GitHub ↗
(b *perNodeTypeCount)

Source from the content-addressed store, hash-verified

268}
269
270func (a *perNodeTypeCount) Equal(b *perNodeTypeCount) bool {
271 if len(*a) != len(*b) {
272 return false
273 }
274 for nodeType, numA := range *a {
275 numB, ok := (*b)[nodeType]
276 if !ok {
277 return false
278 }
279 if numA != numB {
280 return false
281 }
282 }
283 return true
284}
285
286func (vt *ValidationTest) getImagePullPodCountPerNodeType(
287 ctx context.Context,

Callers 15

TestDiscoverDevicesFunction · 0.80
TestIgnoreDeviceFunction · 0.80
TestGetAvailableDevicesFunction · 0.80
TestOperatorFunction · 0.80
TestOperatorControllerFunction · 0.80
Test_objKindOrBestGuessFunction · 0.80
TestUpdateStatusFunction · 0.80
TestGenerateClientFunction · 0.80
TestCephClientControllerFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestDiscoverDevicesFunction · 0.64
TestIgnoreDeviceFunction · 0.64
TestGetAvailableDevicesFunction · 0.64
TestOperatorFunction · 0.64
TestOperatorControllerFunction · 0.64
Test_objKindOrBestGuessFunction · 0.64
TestUpdateStatusFunction · 0.64
TestGenerateClientFunction · 0.64
TestCephClientControllerFunction · 0.64