MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / test_config

Function test_config

tests/proto.cc:108–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static 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
128static void test_load(void)
129{

Callers 1

mainFunction · 0.85

Calls 1

cleanupFunction · 0.70

Tested by

no test coverage detected