MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / ConfigureStreamingOutput

Method ConfigureStreamingOutput

tests/gtest/gtest-all.cc:6516–6528  ·  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

6514// Initializes event listeners for streaming test results in string form.
6515// Must not be called before InitGoogleTest.
6516void UnitTestImpl::ConfigureStreamingOutput() {
6517 const std::string& target = GTEST_FLAG(stream_result_to);
6518 if (!target.empty()) {
6519 const size_t pos = target.find(':');
6520 if (pos != std::string::npos) {
6521 listeners()->Append(new StreamingListener(target.substr(0, pos),
6522 target.substr(pos+1)));
6523 } else {
6524 GTEST_LOG_(WARNING) << "unrecognized streaming target \"" << target
6525 << "\" ignored.";
6526 }
6527 }
6528}
6529#endif // GTEST_CAN_STREAM_RESULTS_
6530
6531// 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