MCPcopy Index your code
hub / github.com/prometheus/client_python / test_prefix

Method test_prefix

tests/test_graphite_bridge.py:68–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.assertEqual(b'labels;a=c;b=d 1.0 1434898897\n', self.data)
67
68 def test_prefix(self):
69 labels = Gauge('labels', 'help', ['a', 'b'], registry=self.registry)
70 labels.labels('c', 'd').inc()
71
72 self.gb.push(prefix='pre.fix')
73 self.t.join()
74
75 self.assertEqual(b'pre.fix.labels.a.c.b.d 1.0 1434898897\n', self.data)
76
77 def test_prefix_tags(self):
78 self._use_tags()

Callers

nothing calls this directly

Calls 5

GaugeClass · 0.90
joinMethod · 0.80
incMethod · 0.45
labelsMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected