HART  0.2.0
High level Audio Regression and Testing
Loading...
Searching...
No Matches
hart_expectation_failure_messages.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
6namespace hart
7{
8
9// TODO: Don't expose the vector directly, implement proper interface
10
11/// @brief Holds failure messages to be displayed by the test runner
12/// @details For internal use only
13/// @private
14/// @ingroup DataStructures
15class ExpectationFailureMessages {
16public:
17 static std::vector<std::string>& get()
18 {
19 thread_local std::vector<std::string> messages;
20 return messages;
21 }
22
23 static void clear()
24 {
25 get().clear();
26 }
27
28private:
29 ExpectationFailureMessages() = default;
30};
31
32} // namespace hart