| 696 | } |
| 697 | |
| 698 | bool Trigger::testCondition() |
| 699 | { |
| 700 | if (mTripCondition.isEmpty()) |
| 701 | return true; //we've got no tests to run so just do it |
| 702 | |
| 703 | //test the mapper plugged in condition line |
| 704 | String resVar = getIdString() + String(".result"); |
| 705 | Con::setBoolVariable(resVar.c_str(), false); |
| 706 | String command = resVar + "=" + mTripCondition + ";"; |
| 707 | Con::evaluatef(command.c_str()); |
| 708 | if (Con::getBoolVariable(resVar.c_str()) == 1) |
| 709 | { |
| 710 | return true; |
| 711 | } |
| 712 | return false; |
| 713 | } |
| 714 | |
| 715 | bool Trigger::evalCmD(String* cmd) |
| 716 | { |
nothing calls this directly
no test coverage detected