summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 41888fc)
raw | patch | inline | side by side (parent: 41888fc)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 4 Nov 2014 19:10:32 +0000 (20:10 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 4 Nov 2014 19:10:32 +0000 (20:10 +0100) |
These errors are only detected by the analyzer which is not used for the
parser test.
parser test.
t/unit/frontend/parser_test.c | patch | blob | history |
index 6008f7c9fbc14a6d50bdc10e38674cba6c1ca886..d33917a3bd4311b1f6fdf78d67057f8597f95bae 100644 (file)
/* valid commands */
{ "FETCH host 'host'", -1, 1, CONNECTION_FETCH },
{ "FETCH host 'host' FILTER "
- "host = 'host'", -1, 1, CONNECTION_FETCH },
+ "age > 60s", -1, 1, CONNECTION_FETCH },
{ "LIST hosts", -1, 1, CONNECTION_LIST },
{ "LIST hosts -- foo", -1, 1, CONNECTION_LIST },
{ "LIST hosts;", -1, 1, CONNECTION_LIST },
{ "LIST hosts; INVALID", 11, 1, CONNECTION_LIST },
{ "LIST hosts FILTER "
- "host = 'host'", -1, 1, CONNECTION_LIST },
+ "age > 60s", -1, 1, CONNECTION_LIST },
{ "LIST services", -1, 1, CONNECTION_LIST },
{ "LIST services FILTER "
- "ANY service = 'svc'", -1, 1, CONNECTION_LIST },
+ "age > 60s", -1, 1, CONNECTION_LIST },
{ "LIST metrics", -1, 1, CONNECTION_LIST },
{ "LIST metrics FILTER "
- "ANY metric = 'm'", -1, 1, CONNECTION_LIST },
+ "age > 60s", -1, 1, CONNECTION_LIST },
{ "LOOKUP hosts", -1, 1, CONNECTION_LOOKUP },
{ "LOOKUP hosts MATCHING "
{ "LIST hosts; INVALID", -1, -1, 0 },
{ "/* some incomplete", -1, -1, 0 },
+ /* invalid commands */
{ "LIST", -1, -1, 0 },
{ "LIST foo", -1, -1, 0 },
{ "LIST hosts MATCHING "
"host = 'host'", -1, -1, 0 },
{ "LIST foo FILTER "
- "host = 'host'", -1, -1, 0 },
+ "age > 60s", -1, -1, 0 },
{ "FETCH host 'host' MATCHING "
"host = 'host'", -1, -1, 0 },
{ "FETCH foo 'host'", -1, -1, 0 },
{ "FETCH foo 'host' FILTER "
- "host = 'host'", -1, -1, 0 },
+ "age > 60s", -1, -1, 0 },
{ "LOOKUP foo", -1, -1, 0 },
{ "LOOKUP foo MATCHING "
"host = 'host'", -1, -1, 0 },
{ "LOOKUP foo FILTER "
- "host = 'host'", -1, -1, 0 },
+ "age > 60s", -1, -1, 0 },
{ "LOOKUP foo MATCHING "
"host = 'host' FILTER "
- "host = 'host'", -1, -1, 0 },
+ "age > 60s", -1, -1, 0 },
{ "LOOKUP hosts MATCHING "
"attribute['foo'] <= "
"f || 'oo'", -1, -1, 0 },