Native OCaml Rego/OPA policy engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-rego: stub test.sleep

+5
+5
lib/eval.ml
··· 2650 2650 (* Use the env-snapshotted time so multiple calls within the same 2651 2651 query return the same value. *) 2652 2652 Value.Number env.now_ns 2653 + | "test.sleep", [ Value.String _ ] -> 2654 + (* Sleeping is a no-op for our pure evaluator; OPA's tests use it 2655 + to ensure the cached clock makes [time.now_ns()] stable across 2656 + the gap. *) 2657 + Value.Bool true 2653 2658 | "time.parse_duration_ns", [ Value.String s ] -> 2654 2659 Value.Number (parse_duration s) 2655 2660 | "time.parse_rfc3339_ns", [ Value.String s ] ->