MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / parser_parse

Function parser_parse

deps/jemalloc/test/unit/stats_print.c:801–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799}
800
801static bool
802parser_parse(parser_t *parser) {
803 if (parser_tokenize(parser)) {
804 goto label_error;
805 }
806 if (parser_parse_value(parser)) {
807 goto label_error;
808 }
809
810 if (parser_tokenize(parser)) {
811 goto label_error;
812 }
813 switch (parser->token.token_type) {
814 case TOKEN_TYPE_EOI:
815 return false;
816 default:
817 goto label_error;
818 }
819 not_reached();
820
821label_error:
822 token_error(&parser->token);
823 return true;
824}
825
826TEST_BEGIN(test_json_parser) {
827 size_t i;

Callers 1

stats_print.cFile · 0.70

Calls 3

parser_tokenizeFunction · 0.70
parser_parse_valueFunction · 0.70
token_errorFunction · 0.70

Tested by

no test coverage detected