mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
17 lines
334 B
Go
17 lines
334 B
Go
|
package stressql
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
// Pulls the default configFile and makes sure it parses
|
||
|
func TestParseStatements(t *testing.T) {
|
||
|
stmts, err := ParseStatements("../iql/file.iql")
|
||
|
if err != nil {
|
||
|
t.Error(err)
|
||
|
}
|
||
|
expected := 15
|
||
|
got := len(stmts)
|
||
|
if expected != got {
|
||
|
t.Errorf("expected: %v\ngot: %v\n", expected, got)
|
||
|
}
|
||
|
}
|