| 5 | #include "peg-parser/tests.h" |
| 6 | |
| 7 | int main(int argc, char *argv[]) { |
| 8 | testing t(std::cout); |
| 9 | if (argc >= 2) { |
| 10 | t.set_filter(argv[1]); |
| 11 | } |
| 12 | |
| 13 | const char * verbose = getenv("LLAMA_TEST_VERBOSE"); |
| 14 | if (verbose) { |
| 15 | t.verbose = std::string(verbose) == "1"; |
| 16 | } |
| 17 | |
| 18 | t.test("basic", test_basic); |
| 19 | t.test("unicode", test_unicode); |
| 20 | t.test("json", test_json_parser); |
| 21 | t.test("gbnf", test_gbnf_generation); |
| 22 | t.test("serialization", test_json_serialization); |
| 23 | |
| 24 | return t.summary(); |
| 25 | } |
nothing calls this directly
no test coverage detected