MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / when_condition_simple_true

Function when_condition_simple_true

nodedb/tests/event_trigger.rs:340–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338
339#[test]
340fn 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]
351fn when_condition_simple_false() {

Callers

nothing calls this directly

Calls 1

make_trigger_with_whenFunction · 0.85

Tested by

no test coverage detected