Beispiel #1
0
 def testSparseDiagnosticsAreNotInlined(self):
   hist = histogram_module.Histogram('hist', 'count')
   histograms = histogram_set.HistogramSet([hist])
   histograms.AddSharedDiagnostic(
       reserved_infos.BENCHMARKS.name,
       histogram_module.GenericSet(['benchmark']))
   add_histograms.InlineDenseSharedDiagnostics(histograms)
   self.assertTrue(hist.diagnostics[reserved_infos.BENCHMARKS.name].has_guid)
Beispiel #2
0
 def testSparseDiagnosticsAreNotInlined(self):
   histogram = histogram_module.Histogram('hist', 'count')
   histograms = histogram_module.HistogramSet([histogram])
   histograms.AddSharedDiagnostic('foo', histogram_module.BuildbotInfo({
       'displayMasterName': 'dmn',
       'displayBotName': 'dbn',
       'buildbotMasterName': 'bbmn',
       'buildbotName': 'bbn',
       'buildNumber': 42,
       'logUri': 'uri',
   }))
   add_histograms.InlineDenseSharedDiagnostics(histograms)
   self.assertFalse(histogram.diagnostics['foo'].is_inline)