MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / expectExplicitMhz

Function expectExplicitMhz

tests/frequency_entry_parser_test.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void expectExplicitMhz(const char* label, const QString& text, bool expected)
22{
23 const QString clean = FrequencyEntryParser::normalizedMhzText(text);
24 const bool actual = FrequencyEntryParser::isExplicitMhzEntry(text, clean);
25 report(label,
26 actual == expected,
27 QStringLiteral("text=%1 clean=%2 actual=%3")
28 .arg(text, clean)
29 .arg(actual ? QStringLiteral("true") : QStringLiteral("false"))
30 .toStdString());
31}
32
33void expectNormalized(const char* label, const QString& text, const QString& expected)
34{

Callers 1

mainFunction · 0.85

Calls 3

normalizedMhzTextFunction · 0.85
isExplicitMhzEntryFunction · 0.85
reportFunction · 0.70

Tested by

no test coverage detected