Commit 6415ef1
Add test cases for consistent cache behavior
Using `rand.intn` test cases as template, we create similar tests
that verify consistent values returned by `uuid.rfc4122` and `time.now_ns`
builtins when invoked during the same evaluation/query.
These tests can also aid compliance regression testing for other OPA implementations,
such as Swift.
Signed-off-by: Dmitry Frenkel <d_frenkel@apple.com>1 parent 92b883d commit 6415ef1
File tree
2 files changed
+26
-0
lines changed- v1/test/cases/testdata/v1
- time
- uuid
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments