From c47d2c04f979ad1c9a01edd15020f9f171bfdcd4 Mon Sep 17 00:00:00 2001 From: Fred Douglas Date: Wed, 22 May 2019 10:54:17 -0400 Subject: [PATCH] snapshot Signed-off-by: Fred Douglas --- test/common/stats/isolated_store_impl_test.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/common/stats/isolated_store_impl_test.cc b/test/common/stats/isolated_store_impl_test.cc index d8b7d6a985e14..7e9f1a33169a1 100644 --- a/test/common/stats/isolated_store_impl_test.cc +++ b/test/common/stats/isolated_store_impl_test.cc @@ -148,5 +148,13 @@ TEST_F(StatsIsolatedStoreImplTest, StatsMacros) { EXPECT_EQ("test.test_histogram", histogram.name()); } +TEST_F(StatsIsolatedStoreImplTest, NullImplCoverage) { + NullCounterImpl c(store_.symbolTable()); + EXPECT_EQ(0, c.latch()); + NullGaugeImpl g(store_.symbolTable()); + g.setShouldImport(true); + EXPECT_EQ(absl::nullopt, g.cachedShouldImport()); +} + } // namespace Stats } // namespace Envoy