| 910 | class EnvYamlExportTest : public testing::TestWithParam<ExportTestCase> {}; |
| 911 | |
| 912 | TEST_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 | |
| 922 | std::vector<ExportTestCase> GetExportTestCases() { |
| 923 | return { |
no test coverage detected