17 #ifndef COM_BORA_SOFTWARE__BALAU_TESTING__STD_WRITERS 18 #define COM_BORA_SOFTWARE__BALAU_TESTING__STD_WRITERS 39 public: std::unique_ptr<TestWriter>
clone()
const override {
51 std::lock_guard<std::mutex> lock(mutex);
52 writeResource.writeStream() << str;
55 public: std::unique_ptr<TestWriter>
clone()
const override {
56 return std::unique_ptr<TestWriter>(
new FileTestWriter(writeResource.getFile()));
62 private: std::mutex mutex;
75 public: std::unique_ptr<TestWriter>
clone()
const override {
81 private: std::ostream & stream;
86 #endif // COM_BORA_SOFTWARE__BALAU_TESTING__STD_WRITERS Base class of test writers.
Definition: TestWriter.hpp:31
A test writer that writes to stdout.
Definition: StdWriters.hpp:34
A file on the local file system.
A write only standard file on a file system which is written as bytes.
void writeString(const std::string &str) override
Write the supplied UTF-8 string to the writer's output stream(s).
Definition: StdWriters.hpp:35
A write only standard file on a file system which is written as bytes.
Definition: FileByteWriteResource.hpp:32
A test writer that writes to the supplied output stream.
Definition: StdWriters.hpp:68
std::unique_ptr< TestWriter > clone() const override
Clone the writer instance.
Definition: StdWriters.hpp:39
A test writer that writes to the specified file.
Definition: StdWriters.hpp:47
std::unique_ptr< TestWriter > clone() const override
Clone the writer instance.
Definition: StdWriters.hpp:55
std::unique_ptr< TestWriter > clone() const override
Clone the writer instance.
Definition: StdWriters.hpp:75
Test assertion functions.
A file on the local file system.
Definition: File.hpp:35
Test writer that writes to the specified Balau logger.
The test runner and test assertion functions.
Definition: Assertions.hpp:23
void writeString(const std::string &str) override
Write the supplied UTF-8 string to the writer's output stream(s).
Definition: StdWriters.hpp:50
void writeString(const std::string &str) override
Write the supplied UTF-8 string to the writer's output stream(s).
Definition: StdWriters.hpp:71
The abstract URI base class.