MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / main

Function main

tests/test-peg-parser.cpp:7–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "peg-parser/tests.h"
6
7int 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 t.test("python-dict", test_python_dict_parser);
24
25 return t.summary();
26}

Callers

nothing calls this directly

Calls 4

stringClass · 0.85
set_filterMethod · 0.80
summaryMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected