()
| 1 | use cel::{Context, Program}; |
| 2 | |
| 3 | fn main() { |
| 4 | let program = Program::compile("foo * 2").unwrap(); |
| 5 | let mut context = Context::default(); |
| 6 | context.add_variable("foo", 10).unwrap(); |
| 7 | |
| 8 | let value = program.execute(&context).unwrap(); |
| 9 | assert_eq!(value, 20.into()); |
| 10 | } |
nothing calls this directly
no test coverage detected