featurebase/pql/ast_test.go
Ben Johnson f39768b49b Refactor parser & AST to remove compile-time field names.
Consolidates all the pql.Call implementations into a single
pql.Call struct. This is needed to support user-defined schemas
on frames.

This also has the added benefit that a lot of redundant parsing
code has been consolidated.
2017-02-02 14:27:18 -07:00

17 lines
318 B
Go

package pql_test
import (
"testing"
"github.com/pilosa/pilosa/pql"
)
// Ensure call can be converted into a string.
func TestCall_String(t *testing.T) {
t.Run("Empty", func(t *testing.T) {
c := &pql.Call{Name: "Bitmap"}
if s := c.String(); s != `Bitmap()` {
t.Fatalf("unexpected string: %s", s)
}
})
}