mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 08:35:55 +00:00
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.
17 lines
318 B
Go
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)
|
|
}
|
|
})
|
|
}
|