Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ func validateEvalParams(p *evalCommandParams, cmdArgs []string) error {

// check if illegal arguments is passed with unknowns flag
for _, unknwn := range p.unknowns {
if unknwn == "input" {
continue
}
Comment thread
anderseknert marked this conversation as resolved.
term, err := ast.ParseTerm(unknwn)
if err != nil {
return err
Expand Down
10 changes: 10 additions & 0 deletions v1/ast/capabilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,16 @@ func TestCapabilitiesMinimumCompatibleVersion(t *testing.T) {
}
}

func BenchmarkCapabilitiesCurrentVersion(b *testing.B) {
var caps *Capabilities
for range b.N {
caps = CapabilitiesForThisVersion()
}
if caps == nil {
b.Fatal("expected capabilities to be non-nil")
}
}

func findBuiltinIndex(c *Capabilities, name string) int {
for i, bi := range c.Builtins {
if bi.Name == name {
Expand Down
Loading