src/modular/lib/modular_config/modular_config_unittest.cc
// Tests that ParseConfig return an error when passed a string that doesn't contain valid JSON.
Tests that ParseConfig return an error when passed a string that doesn't contain valid JSON.
Tests that ParseConfig return an error when passed a string that doesn ' t contain valid JSON .
TEST_F(ModularConfigReaderTest, ParseConfigInvalidJson) {
  static constexpr auto kConfigJson = R"(this is not valid JSON)";
  auto config_result = modular::ParseConfig(kConfigJson);
  EXPECT_TRUE(config_result.is_error());
}
TEST_F ( ModularConfigReaderTest , ParseConfigInvalidJson ) { static constexpr auto kConfigJson = R" ( this is not valid JSON ) " ; auto config_result = modular :: ParseConfig ( kConfigJson ) ; EXPECT_TRUE ( config_result . is_error ( ) ) ; }
Tests that ParseConfig return an error when passed a string that doesn't contain valid JSON.
Tests that ParseConfig return an error when passed a string that doesn ' t contain valid JSON .