2016-04-21 18:03:43 +00:00
|
|
|
package stressql
|
|
|
|
|
2016-05-26 15:46:10 +00:00
|
|
|
import "testing"
|
2016-04-21 18:03:43 +00:00
|
|
|
|
|
|
|
// Pulls the default configFile and makes sure it parses
|
|
|
|
func TestParseStatements(t *testing.T) {
|
2016-06-15 23:00:06 +00:00
|
|
|
stmts, err := ParseStatements("../iql/file.iql")
|
2016-04-21 18:03:43 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Error(err)
|
|
|
|
}
|
|
|
|
expected := 15
|
|
|
|
got := len(stmts)
|
|
|
|
if expected != got {
|
|
|
|
t.Errorf("expected: %v\ngot: %v\n", expected, got)
|
|
|
|
}
|
|
|
|
}
|