aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd
diff options
context:
space:
mode:
authormanuel <manuel.bott@eps.ch>2026-10-31 09:54:17 +0000
committermanuel <manuel.bott@eps.ch>2026-11-12 07:23:09 +0000
commitcb05568db24efc9fd0b33e9d0094256e1b678e69 (patch)
treec3ebada11277e1b2e116c1e6a7b699c350223c24 /libs/kstd
parent9f8376981c6749b9420e3d319b29e9e78de49423 (diff)
downloadkernel-cb05568db24efc9fd0b33e9d0094256e1b678e69.tar.xz
kernel-cb05568db24efc9fd0b33e9d0094256e1b678e69.zip
doc: require StringMaker instead of formatter for test printing
Diffstat (limited to 'libs/kstd')
-rw-r--r--libs/kstd/kstd/test_support/string_makers.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/kstd/kstd/test_support/string_makers.hpp b/libs/kstd/kstd/test_support/string_makers.hpp
index c2c6a38a..46d270f9 100644
--- a/libs/kstd/kstd/test_support/string_makers.hpp
+++ b/libs/kstd/kstd/test_support/string_makers.hpp
@@ -7,9 +7,9 @@
//! so that failed assertions show the actual values. It is force-included into every test translation unit by the
//! build system and must therefore never be included by kernel code.
//!
-//! Any type with a kstd::formatter specialization is printed via kstd::format, so the easiest way to make a type
-//! printable in tests is to give it a formatter. Types without a formatter can get a Catch::StringMaker specialization
-//! here, or in the test support header of the library they belong to.
+//! Types that already have a kstd::formatter specialization are printed via kstd::format. All other types get a
+//! Catch::StringMaker specialization here, or in the test support header of the library they belong to. Kernel code
+//! must never be changed just to make a type printable in tests.
#include <kstd/format.hpp>
#include <kstd/memory.hpp>