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

Function GetCapturedStream

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

Stops capturing the output stream and returns the captured string.

Source from the content-addressed store, hash-verified

8400
8401// Stops capturing the output stream and returns the captured string.
8402String GetCapturedStream(CapturedStream** captured_stream) {
8403 const String content = (*captured_stream)->GetCapturedString();
8404
8405 delete *captured_stream;
8406 *captured_stream = NULL;
8407
8408 return content;
8409}
8410
8411// Starts capturing stdout.
8412void CaptureStdout() {

Callers 2

GetCapturedStdoutFunction · 0.85
GetCapturedStderrFunction · 0.85

Calls 1

GetCapturedStringMethod · 0.80

Tested by

no test coverage detected