From b82a7cf1f1cece54ac4439b86bcf6e304cc31363 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Wed, 1 Apr 2026 01:42:26 +0200 Subject: [PATCH] fix: Add helper to Context reader test --- test/DocumentContextReaderTest.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/DocumentContextReaderTest.cpp b/test/DocumentContextReaderTest.cpp index 3ff5f12..91ce5b0 100644 --- a/test/DocumentContextReaderTest.cpp +++ b/test/DocumentContextReaderTest.cpp @@ -24,6 +24,19 @@ #include #include +namespace QodeAssist::PluginLLMCore { + +void PrintTo(const ContextData &data, std::ostream *os) +{ + *os << "ContextData{prefix=" + << (data.prefix ? data.prefix->toStdString() : "") + << ", suffix=" << (data.suffix ? data.suffix->toStdString() : "") + << ", fileContext=" << (data.fileContext ? data.fileContext->toStdString() : "") + << "}"; +} + +} // namespace QodeAssist::PluginLLMCore + using namespace QodeAssist::Context; using namespace QodeAssist::LLMCore; using namespace QodeAssist::Settings;