MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / GetCapturedStream

Function GetCapturedStream

test/common/gtest/gtest.cpp:9680–9687  ·  view source on GitHub ↗

Stops capturing the output stream and returns the captured string.

Source from the content-addressed store, hash-verified

9678
9679// Stops capturing the output stream and returns the captured string.
9680std::string GetCapturedStream(CapturedStream** captured_stream) {
9681 const std::string content = (*captured_stream)->GetCapturedString();
9682
9683 delete *captured_stream;
9684 *captured_stream = NULL;
9685
9686 return content;
9687}
9688
9689// Starts capturing stdout.
9690void CaptureStdout() {

Callers 2

GetCapturedStdoutFunction · 0.85
GetCapturedStderrFunction · 0.85

Calls 1

GetCapturedStringMethod · 0.80

Tested by

no test coverage detected