Up unit test coverage of printer and label builder module
All checks were successful
Build ptprnt / build (push) Successful in 2m28s

This commit is contained in:
2025-10-19 14:57:26 +02:00
parent b24793bce6
commit 6009f0421d
4 changed files with 485 additions and 0 deletions

View File

@@ -113,6 +113,11 @@ bool FakePrinter::printMonochromeData(const graphics::MonochromeData& data) {
}
bool FakePrinter::printLabel(const std::unique_ptr<graphics::ILabel> label) {
if (!label) {
spdlog::error("FakePrinter: Cannot print null label");
return false;
}
// Convert label directly to MonochromeData
// getRaw() returns data in Cairo surface coordinates matching getWidth() × getHeight()
auto pixels = label->getRaw();