|  | @@ -79,5 +79,27 @@ TEST(HistogramTest, cumulative_bucket_count) {
 | 
	
		
			
				|  |  |    EXPECT_EQ(h.bucket.at(2).cumulative_count, 7U);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +TEST(HistogramTest, observe_multiple_test_bucket_counts) {
 | 
	
		
			
				|  |  | +  Histogram histogram{{1, 2}};
 | 
	
		
			
				|  |  | +  histogram.ObserveMultiple({5, 9, 3}, 20);
 | 
	
		
			
				|  |  | +  histogram.ObserveMultiple({0, 20, 6}, 34);
 | 
	
		
			
				|  |  | +  auto metric = histogram.Collect();
 | 
	
		
			
				|  |  | +  auto h = metric.histogram;
 | 
	
		
			
				|  |  | +  ASSERT_EQ(h.bucket.size(), 3U);
 | 
	
		
			
				|  |  | +  EXPECT_EQ(h.bucket.at(0).cumulative_count, 5U);
 | 
	
		
			
				|  |  | +  EXPECT_EQ(h.bucket.at(1).cumulative_count, 34U);
 | 
	
		
			
				|  |  | +  EXPECT_EQ(h.bucket.at(2).cumulative_count, 43U);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +TEST(HistogramTest, observe_multiple_test_total_sum) {
 | 
	
		
			
				|  |  | +  Histogram histogram{{1, 2}};
 | 
	
		
			
				|  |  | +  histogram.ObserveMultiple({5, 9, 3}, 20);
 | 
	
		
			
				|  |  | +  histogram.ObserveMultiple({0, 20, 6}, 34);
 | 
	
		
			
				|  |  | +  auto metric = histogram.Collect();
 | 
	
		
			
				|  |  | +  auto h = metric.histogram;
 | 
	
		
			
				|  |  | +  EXPECT_EQ(h.sample_count, 43U);
 | 
	
		
			
				|  |  | +  EXPECT_EQ(h.sample_sum, 54);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  }  // namespace
 | 
	
		
			
				|  |  |  }  // namespace prometheus
 |