MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / main

Function main

subprojects/llama.cpp/tests/test-peg-parser.cpp:7–25  ·  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
24 return t.summary();
25}

Callers

nothing calls this directly

Calls 4

stringClass · 0.85
set_filterMethod · 0.80
summaryMethod · 0.80
testMethod · 0.65

Tested by

no test coverage detected