MCPcopy
hub / github.com/cortexlabs/cortex / Equal

Method Equal

pkg/lib/k8s/quantity.go:236–238  ·  view source on GitHub ↗
(quantity2 Quantity)

Source from the content-addressed store, hash-verified

234}
235
236func (quantity *Quantity) Equal(quantity2 Quantity) bool {
237 return quantity.Quantity.Cmp(quantity2.Quantity) == 0
238}
239
240func (quantity *Quantity) ID() string {
241 return s.Int64(quantity.MilliValue())

Callers 15

TestMergeAvgFunction · 0.80
TestLongestCommonPrefixFunction · 0.80
TestRemoveDuplicatesFunction · 0.80
TestObjFunction · 0.80
TestRoundFunction · 0.80
testConfigFunction · 0.80
CheckFlattenAllStrValuesFunction · 0.80
PodComputesEqualFunction · 0.80
QuantityPtrsEqualFunction · 0.80
TestPrintFileTreeFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestMergeAvgFunction · 0.64
TestLongestCommonPrefixFunction · 0.64
TestRemoveDuplicatesFunction · 0.64
TestObjFunction · 0.64
TestRoundFunction · 0.64
testConfigFunction · 0.64
CheckFlattenAllStrValuesFunction · 0.64
TestPrintFileTreeFunction · 0.64
TestHasStringFunction · 0.64
TestRemoveStringFunction · 0.64