MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / ConfigureStreamingOutput

Method ConfigureStreamingOutput

rtpose_wrapper/src/gtest/gtest-all.cpp:5317–5330  ·  view source on GitHub ↗

Initializes event listeners for streaming test results in String form. Must not be called before InitGoogleTest.

Source from the content-addressed store, hash-verified

5315// Initializes event listeners for streaming test results in String form.
5316// Must not be called before InitGoogleTest.
5317void UnitTestImpl::ConfigureStreamingOutput() {
5318 const string& target = GTEST_FLAG(stream_result_to);
5319 if (!target.empty()) {
5320 const size_t pos = target.find(':');
5321 if (pos != string::npos) {
5322 listeners()->Append(new StreamingListener(target.substr(0, pos),
5323 target.substr(pos+1)));
5324 } else {
5325 printf("WARNING: unrecognized streaming target \"%s\" ignored.\n",
5326 target.c_str());
5327 fflush(stdout);
5328 }
5329 }
5330}
5331#endif // GTEST_CAN_STREAM_RESULTS_
5332
5333// Performs initialization dependent upon flag values obtained in

Callers

nothing calls this directly

Calls 2

listenersFunction · 0.85
AppendMethod · 0.80

Tested by

no test coverage detected