This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/topdown/eval.go b/topdown/eval.go | |
index b51f5a65..f0de1d3e 100644 | |
--- a/topdown/eval.go | |
+++ b/topdown/eval.go | |
@@ -2455,17 +2455,35 @@ func (e evalTerm) next(iter unifyIterator, plugged *ast.Term) error { | |
return cpy.eval(iter) | |
} | |
+func (e evalTerm) next2(iter unifyIterator, term *ast.Term) error { | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/internal/planner/planner.go b/internal/planner/planner.go | |
index eefcd8fb..74fa337b 100644 | |
--- a/internal/planner/planner.go | |
+++ b/internal/planner/planner.go | |
@@ -152,10 +152,14 @@ func (p *Planner) planRules(rules []*ast.Rule) (string, error) { | |
pcurr := p.curr | |
pltarget := p.ltarget | |
plnext := p.lnext | |
+ ploc := p.loc | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wasm | |
import ( | |
"bytes" | |
"context" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"testing" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"strconv" | |
"strings" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go test -bench=. -run=^$ x_bench_test.go | |
map[object.union:8 sprintf:13] | |
map[main/main:1 policy/com.styra.kubernetes.validating/main/main:0] | |
goos: linux | |
goarch: amd64 | |
BenchmarkEval-20 map[object.union:8 sprintf:13] | |
map[main/main:1 policy/com.styra.kubernetes.validating/main/main:0] | |
map[object.union:8 sprintf:13] | |
map[main/main:1 policy/com.styra.kubernetes.validating/main/main:0] | |
5 216041540 ns/op |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// #include <stdlib.h> | |
// | |
// extern void opa_abort(void *context, int32_t addr); | |
// extern int32_t opa_builtin0(void *context, int32_t builtin_id, int32_t ctx); | |
// extern int32_t opa_builtin1(void *context, int32_t builtin_id, int32_t ctx, int32_t arg0); | |
// extern int32_t opa_builtin2(void *context, int32_t builtin_id, int32_t ctx, int32_t arg0, int32_t arg1); | |
// extern int32_t opa_builtin3(void *context, int32_t builtin_id, int32_t ctx, int32_t arg0, int32_t arg1, int32_t arg2); | |
// extern int32_t opa_builtin4(void *context, int32_t builtin_id, int32_t ctx, int32_t arg0, int32_t arg1, int32_t arg2, int32_t arg3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestE2E | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0010.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0001.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0003.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0004.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0005.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0027.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0027.yaml#01 | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0002.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0013.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestE2E | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0010.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0001.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0003.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0004.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0005.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0027.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0027.yaml#01 | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0002.yaml | |
=== RUN TestE2E/../../opa/test/cases/testdata/aggregates/test-aggregates-0013.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/open-policy-agent/opa/ast" | |
"github.com/open-policy-agent/opa/rego" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/topdown/http.go b/topdown/http.go | |
index 856e790c..ae0c69af 100644 | |
--- a/topdown/http.go | |
+++ b/topdown/http.go | |
@@ -79,70 +79,55 @@ func builtinHTTPSend(bctx BuiltinContext, args []*ast.Term, iter func(*ast.Term) | |
return handleBuiltinErr(ast.HTTPSend.Name, bctx.Location, err) | |
} | |
- return builtinHTTPSendHelper(bctx, req, raiseError, iter) | |
-} |
NewerOlder