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

Function writeTempHelp

tests/help_dialog_test.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool writeTempHelp(QTemporaryFile& file)
33{
34 if (!file.open())
35 return false;
36
37 const QByteArray body =
38 "target first\n\n"
39 "middle line\n\n"
40 "target second\n\n"
41 "end marker\n";
42 const bool ok = file.write(body) == body.size() && file.flush();
43 file.close();
44 return ok;
45}
46
47struct HelpWidgets {
48 QLineEdit* edit{nullptr};

Callers 4

testFindNextAndWrapFunction · 0.85

Calls 5

openMethod · 0.45
writeMethod · 0.45
sizeMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected