MCPcopy Create free account
hub / github.com/ElementsProject/elements / DebugLogHelper

Method DebugLogHelper

src/test/util/logging.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <stdexcept>
12
13DebugLogHelper::DebugLogHelper(std::string message, MatchFn match)
14 : m_message{std::move(message)}, m_match(std::move(match))
15{
16 m_print_connection = LogInstance().PushBackCallback(
17 [this](const std::string& s) {
18 if (m_found) return;
19 m_found = s.find(m_message) != std::string::npos && m_match(&s);
20 });
21 noui_test_redirect();
22}
23
24void DebugLogHelper::check_found()
25{

Callers

nothing calls this directly

Calls 3

noui_test_redirectFunction · 0.85
PushBackCallbackMethod · 0.80
findMethod · 0.80

Tested by

no test coverage detected