rego-v1: Future-proofing ir, loader, profiler, and refactor pkg tests to be 1.0 compatible (#7021)

Updating tests in packages:

* ir
* loader
* profiler
* refactor

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
This commit is contained in:
Johan Fylling
2024-09-18 13:10:46 +02:00
committed by GitHub
parent e8b3bdda8e
commit 06942c6c29
5 changed files with 73 additions and 48 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
package bar
import rego.v1
p = true { true }
p = true if { true }
+2 -1
View File
@@ -52,8 +52,9 @@ func TestLoadRego(t *testing.T) {
files := map[string]string{
"/foo.rego": `package ex
import rego.v1
p = true { true }`}
p = true if { true }`}
test.WithTempFS(files, func(rootDir string) {
moduleFile := filepath.Join(rootDir, "foo.rego")