blob: 5f2a1a77c1e988dda3ed9b939245aee14a8405a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef KERNEL_TESTS_LOG_BUFFER_HPP
#define KERNEL_TESTS_LOG_BUFFER_HPP
#include <string>
#include <vector>
namespace kernel::tests::log_buffer
{
//! Append a message to the testing log buffer.
//!
//! @param message The message to append.
auto append(std::string const & message) -> void;
//! Clear the testing log buffer.
auto clear() -> void;
//! Get the testing log buffer as a single string.
//!
//! @return The testing log buffer as a single string.
auto flat_messages() -> std::string;
//! Get the testing log buffer.
//!
//! @note Messages may be split across multiple entries if they are longer than the internal kernel print buffer size.
//!
//! @return The testing log buffer.
auto messages() -> std::vector<std::string> const &;
} // namespace kernel::tests::log_buffer
#endif
|