Update metric names and allow skipping of specific metrics

This commit is contained in:
Stephen Marshall
2018-06-18 13:24:12 +01:00
parent 4984beb139
commit 2e0aad0318
4 changed files with 210 additions and 191 deletions

View File

@@ -30,8 +30,8 @@ func TestGenerateMetricNamesMap(t *testing.T) {
if !ok {
t.Errorf("No metric name mapping found for %s", testKey1)
} else {
if actual != testElement1Name {
t.Errorf("Expected metric name=%s; actual %s", testElement1Name, actual)
if actual.name != testElement1Name {
t.Errorf("Expected metric name=%s; actual %s", testElement1Name, actual.name)
}
}
}