MCPcopy
hub / github.com/kubernetes/node-problem-detector / FakeInt64Metric

Struct FakeInt64Metric

pkg/util/metrics/fakes.go:33–38  ·  view source on GitHub ↗

FakeInt64Metric implements Int64MetricInterface. FakeInt64Metric can be used as a test double for Int64MetricInterface, allowing inspection of the metrics.

Source from the content-addressed store, hash-verified

31// FakeInt64Metric can be used as a test double for Int64MetricInterface, allowing
32// inspection of the metrics.
33type FakeInt64Metric struct {
34 name string
35 aggregation Aggregation
36 allowedTags map[string]bool
37 metrics []Int64MetricRepresentation
38}
39
40func NewFakeInt64Metric(name string, aggregation Aggregation, tagNames []string) *FakeInt64Metric {
41 if name == "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected