| 75 | } |
| 76 | |
| 77 | void 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 | |
| 94 | void TestMICommand::testMICommandHandler() |
| 95 | { |
nothing calls this directly
no test coverage detected