testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
Loading...
Searching...
No Matches
testcontainers::ExecResult Struct Reference

The result of running a command inside a container via exec. More...

#include <testcontainers/ExecResult.hpp>

Public Attributes

std::string stdout_data
std::string stderr_data
std::int64_t exit_code = 0

Detailed Description

The result of running a command inside a container via exec.

stdout_data / stderr_data are the demultiplexed output streams; the fields are named with a _data suffix because stdout / stderr are reserved macros from <cstdio> on some platforms (notably MSVC).

Member Data Documentation

◆ stdout_data

std::string testcontainers::ExecResult::stdout_data

◆ stderr_data

std::string testcontainers::ExecResult::stderr_data

◆ exit_code

std::int64_t testcontainers::ExecResult::exit_code = 0