(self)
| 406 | self.assertEqual([InfoMetricFamily("a", "help", {'foo': 'bar'})], list(families)) |
| 407 | |
| 408 | def test_info_timestamps(self): |
| 409 | families = text_string_to_metric_families("""# TYPE a info |
| 410 | # HELP a help |
| 411 | a_info{a="1",foo="bar"} 1 1 |
| 412 | a_info{a="2",foo="bar"} 1 0 |
| 413 | # EOF |
| 414 | """) |
| 415 | imf = InfoMetricFamily("a", "help") |
| 416 | imf.add_sample("a_info", {"a": "1", "foo": "bar"}, 1, Timestamp(1, 0)) |
| 417 | imf.add_sample("a_info", {"a": "2", "foo": "bar"}, 1, Timestamp(0, 0)) |
| 418 | self.assertEqual([imf], list(families)) |
| 419 | |
| 420 | def test_simple_stateset(self): |
| 421 | families = text_string_to_metric_families("""# TYPE a stateset |
nothing calls this directly
no test coverage detected