OutputCapture

class OutputCapture

Utility class for capturing and validating output streams.

Captures the output sent to std::cout for validating test results involving console output.

Public Functions

inline void startCapture()

Begins capturing std::cout output.

inline std::string getCapturedOutput()

Stops capturing and retrieves the captured output.

Returns:

The captured output as a string.