()
| 338 | |
| 339 | #[test] |
| 340 | fn when_condition_simple_true() { |
| 341 | let t = make_trigger_with_when("t1", "orders", "TRUE", TriggerExecutionMode::Async); |
| 342 | assert_eq!(t.when_condition.as_deref(), Some("TRUE")); |
| 343 | // The evaluator should accept TRUE. |
| 344 | assert_eq!( |
| 345 | nodedb::control::trigger::try_eval_simple_condition("TRUE"), |
| 346 | Some(true) |
| 347 | ); |
| 348 | } |
| 349 | |
| 350 | #[test] |
| 351 | fn when_condition_simple_false() { |
nothing calls this directly
no test coverage detected