()
| 173 | } |
| 174 | |
| 175 | func fnEnvOption() cel.EnvOption { |
| 176 | return cel.Function("fn", |
| 177 | cel.Overload("fn_int", []*cel.Type{cel.IntType}, cel.IntType, |
| 178 | cel.UnaryBinding(func(in ref.Val) ref.Val { |
| 179 | i := in.(types.Int) |
| 180 | return i / types.Int(2) |
| 181 | }))) |
| 182 | } |
| 183 | |
| 184 | // TestTriggerTests tests different scenarios of the TriggerTestsFromCompiler function. |
| 185 | func TestTriggerTests(t *testing.T) { |
no test coverage detected