|  | @@ -9,9 +9,7 @@
 | 
	
		
			
				|  |  |  using namespace testing;
 | 
	
		
			
				|  |  |  using namespace prometheus;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -class FamilyTest : public Test {};
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -TEST_F(FamilyTest, labels) {
 | 
	
		
			
				|  |  | +TEST(FamilyTest, labels) {
 | 
	
		
			
				|  |  |    auto const_label = ClientMetric::Label{"component", "test"};
 | 
	
		
			
				|  |  |    auto dynamic_label = ClientMetric::Label{"status", "200"};
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -26,7 +24,7 @@ TEST_F(FamilyTest, labels) {
 | 
	
		
			
				|  |  |                ElementsAre(const_label, dynamic_label));
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -TEST_F(FamilyTest, counter_value) {
 | 
	
		
			
				|  |  | +TEST(FamilyTest, counter_value) {
 | 
	
		
			
				|  |  |    Family<Counter> family{"total_requests", "Counts all requests", {}};
 | 
	
		
			
				|  |  |    auto& counter = family.Add({});
 | 
	
		
			
				|  |  |    counter.Increment();
 | 
	
	
		
			
				|  | @@ -36,7 +34,7 @@ TEST_F(FamilyTest, counter_value) {
 | 
	
		
			
				|  |  |    EXPECT_THAT(collected[0].metric.at(0).counter.value, Eq(1));
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -TEST_F(FamilyTest, remove) {
 | 
	
		
			
				|  |  | +TEST(FamilyTest, remove) {
 | 
	
		
			
				|  |  |    Family<Counter> family{"total_requests", "Counts all requests", {}};
 | 
	
		
			
				|  |  |    auto& counter1 = family.Add({{"name", "counter1"}});
 | 
	
		
			
				|  |  |    family.Add({{"name", "counter2"}});
 | 
	
	
		
			
				|  | @@ -46,7 +44,7 @@ TEST_F(FamilyTest, remove) {
 | 
	
		
			
				|  |  |    EXPECT_EQ(collected[0].metric.size(), 1);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -TEST_F(FamilyTest, Histogram) {
 | 
	
		
			
				|  |  | +TEST(FamilyTest, Histogram) {
 | 
	
		
			
				|  |  |    Family<Histogram> family{"request_latency", "Latency Histogram", {}};
 | 
	
		
			
				|  |  |    auto& histogram1 = family.Add({{"name", "histogram1"}},
 | 
	
		
			
				|  |  |                                  Histogram::BucketBoundaries{0, 1, 2});
 | 
	
	
		
			
				|  | @@ -57,7 +55,7 @@ TEST_F(FamilyTest, Histogram) {
 | 
	
		
			
				|  |  |    EXPECT_THAT(collected[0].metric.at(0).histogram.sample_count, Eq(1));
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -TEST_F(FamilyTest, add_twice) {
 | 
	
		
			
				|  |  | +TEST(FamilyTest, add_twice) {
 | 
	
		
			
				|  |  |    Family<Counter> family{"total_requests", "Counts all requests", {}};
 | 
	
		
			
				|  |  |    auto& counter = family.Add({{"name", "counter1"}});
 | 
	
		
			
				|  |  |    auto& counter1 = family.Add({{"name", "counter1"}});
 | 
	
	
		
			
				|  | @@ -65,14 +63,14 @@ TEST_F(FamilyTest, add_twice) {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  #ifndef NDEBUG
 | 
	
		
			
				|  |  | -TEST_F(FamilyTest, should_assert_on_invalid_metric_name) {
 | 
	
		
			
				|  |  | +TEST(FamilyTest, should_assert_on_invalid_metric_name) {
 | 
	
		
			
				|  |  |    auto create_family_with_invalid_name = []() {
 | 
	
		
			
				|  |  |      new Family<Counter>("", "empty name", {});
 | 
	
		
			
				|  |  |    };
 | 
	
		
			
				|  |  |    EXPECT_DEATH(create_family_with_invalid_name(), ".*");
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -TEST_F(FamilyTest, should_assert_on_invalid_labels) {
 | 
	
		
			
				|  |  | +TEST(FamilyTest, should_assert_on_invalid_labels) {
 | 
	
		
			
				|  |  |    Family<Counter> family{"total_requests", "Counts all requests", {}};
 | 
	
		
			
				|  |  |    auto add_metric_with_invalid_label_name = [&family]() {
 | 
	
		
			
				|  |  |      family.Add({{"__invalid", "counter1"}});
 |