MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST_P

Function TEST_P

env/env_yaml_test.cc:912–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910class EnvYamlExportTest : public testing::TestWithParam<ExportTestCase> {};
911
912TEST_P(EnvYamlExportTest, EnvYamlExport) {
913 const ExportTestCase& param = GetParam();
914 ASSERT_OK_AND_ASSIGN(Config config, param.config);
915 std::stringstream ss;
916 EnvConfigToYaml(config, ss);
917 std::string yaml_output = Unindent(ss.str());
918 std::string expected_yaml = Unindent(param.expected_yaml);
919 EXPECT_EQ(yaml_output, expected_yaml);
920}
921
922std::vector<ExportTestCase> GetExportTestCases() {
923 return {

Callers 1

ASSERT_OK_AND_ASSIGNFunction · 0.70

Calls 1

EnvConfigToYamlFunction · 0.85

Tested by

no test coverage detected