| 20 | #include "context.h" |
| 21 | |
| 22 | AssertFunction::AssertFunction() : Function("assert") |
| 23 | { |
| 24 | addDescription(tr("Checks the expected value and stops execution when false")); |
| 25 | addParameter("condition",tr("A value that is expected to be true")); |
| 26 | addParameter("message",tr("A message that is displayed when the assertion fails")); |
| 27 | } |
| 28 | |
| 29 | Value& AssertFunction::evaluate(const Context& ctx) const |
| 30 | { |
nothing calls this directly
no outgoing calls
no test coverage detected