예제 #1
0
 def test_measure(self):
     measure = metrics.Measure()
     bound_measure = measure.bind({})
     self.assertIsInstance(bound_measure, metrics.BoundMeasure)
예제 #2
0
 def test_measure_record(self):
     measure = metrics.Measure()
     measure.record(1, {})
예제 #3
0
 def test_measure_record(self):
     measure = metrics.Measure()
     label_set = metrics.LabelSet()
     measure.record(label_set, 1)
예제 #4
0
 def test_measure(self):
     measure = metrics.Measure()
     label_set = metrics.LabelSet()
     handle = measure.get_handle(label_set)
     self.assertIsInstance(handle, metrics.MeasureHandle)
예제 #5
0
 def test_measure_record(self):
     measure = metrics.Measure()
     measure.record(("value", ), 1)
예제 #6
0
 def test_measure(self):
     measure = metrics.Measure()
     handle = measure.get_handle(("test", "test1"))
     self.assertIsInstance(handle, metrics.MeasureHandle)
 def test_measure(self):
     measure = metrics.Measure()
     label_set = metrics.LabelSet()
     bound_measure = measure.bind(label_set)
     self.assertIsInstance(bound_measure, metrics.BoundMeasure)