| 1 | package stressql |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | // Pulls the default configFile and makes sure it parses |
| 6 | func TestParseStatements(t *testing.T) { |
| 7 | stmts, err := ParseStatements("../iql/file.iql") |
| 8 | if err != nil { |
| 9 | t.Error(err) |
| 10 | } |
| 11 | expected := 15 |
| 12 | got := len(stmts) |
| 13 | if expected != got { |
| 14 | t.Errorf("expected: %v\ngot: %v\n", expected, got) |
| 15 | } |
| 16 | } |