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

Function GetCapturedStream

tests/gtest/gtest-all.cc:10880–10887  ·  view source on GitHub ↗

Stops capturing the output stream and returns the captured string.

Source from the content-addressed store, hash-verified

10878
10879// Stops capturing the output stream and returns the captured string.
10880static std::string GetCapturedStream(CapturedStream** captured_stream) {
10881 const std::string content = (*captured_stream)->GetCapturedString();
10882
10883 delete *captured_stream;
10884 *captured_stream = nullptr;
10885
10886 return content;
10887}
10888
10889// Starts capturing stdout.
10890void CaptureStdout() {

Callers 2

GetCapturedStdoutFunction · 0.85
GetCapturedStderrFunction · 0.85

Calls 1

GetCapturedStringMethod · 0.80

Tested by

no test coverage detected