MCPcopy
hub / github.com/google/cadvisor / Difference

Method Difference

lib/container/factory.go:155–163  ·  view source on GitHub ↗
(ms1 MetricSet)

Source from the content-addressed store, hash-verified

153}
154
155func (ms MetricSet) Difference(ms1 MetricSet) MetricSet {
156 result := MetricSet{}
157 for kind := range ms {
158 if !ms1.Has(kind) {
159 result.add(kind)
160 }
161 }
162 return result
163}
164
165func (ms MetricSet) Append(ms1 MetricSet) MetricSet {
166 result := ms

Callers 4

RemoveNetMetricsFunction · 0.80
TestRemoveNetMetricsFunction · 0.80
TestToIncludedMetricsFunction · 0.80
mainFunction · 0.80

Calls 2

addMethod · 0.95
HasMethod · 0.80

Tested by 2

TestRemoveNetMetricsFunction · 0.64
TestToIncludedMetricsFunction · 0.64