MCPcopy Create free account
hub / github.com/KDE/kdevelop / testUserCommand

Method testUserCommand

plugins/debuggercommon/tests/test_micommand.cpp:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void TestMICommand::testUserCommand()
78{
79 KDevMI::MI::UserCommand command(KDevMI::MI::NonMI, "command");
80 command.setToken(1);
81
82 // check
83 QCOMPARE(command.token(), (uint)1);
84 QCOMPARE(command.frame(), -1);
85 QCOMPARE(command.thread(), -1);
86 QCOMPARE(command.isUserCommand(), true);
87 QCOMPARE(command.handlesError(), false);
88 QCOMPARE(command.flags(), KDevMI::MI::CommandFlags(KDevMI::MI::CmdMaybeStartsRunning));
89 QCOMPARE(command.command(), QStringLiteral("command"));
90 QCOMPARE(command.initialString(), QStringLiteral("1command"));
91 QCOMPARE(command.cmdToSend(), QStringLiteral("1command\n"));
92}
93
94void TestMICommand::testMICommandHandler()
95{

Callers

nothing calls this directly

Calls 10

setTokenMethod · 0.80
threadMethod · 0.80
isUserCommandMethod · 0.80
initialStringMethod · 0.80
tokenMethod · 0.45
frameMethod · 0.45
handlesErrorMethod · 0.45
flagsMethod · 0.45
commandMethod · 0.45
cmdToSendMethod · 0.45

Tested by

no test coverage detected