| 106 | } |
| 107 | |
| 108 | static void test_config(void) |
| 109 | { |
| 110 | ConfigProto config; |
| 111 | |
| 112 | const std::string text = R"M( |
| 113 | image_reader { |
| 114 | filename: "filename" |
| 115 | } |
| 116 | |
| 117 | flux_sink { |
| 118 | drive { } |
| 119 | } |
| 120 | )M"; |
| 121 | google::protobuf::TextFormat::MergeFromString(text, &config); |
| 122 | |
| 123 | std::string s; |
| 124 | google::protobuf::TextFormat::PrintToString(config, &s); |
| 125 | AssertThat(cleanup(s), Equals(cleanup(text))); |
| 126 | } |
| 127 | |
| 128 | static void test_load(void) |
| 129 | { |