MCPcopy Create free account
hub / github.com/codr7/hacktical-c / read_id_tests

Function read_id_tests

dsl/tests.c:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static void read_id_tests() {
21 struct hc_sloc sloc = hc_sloc("read_id_tests", 0, 0);
22
23 struct hc_list out;
24 hc_list_init(&out);
25 hc_defer(hc_forms_free(&out));
26
27 const char *s = "foo";
28 const char *in = s;
29 assert(hc_read_expr(&in, &out, &sloc));
30
31 struct hc_form *f = hc_baseof(out.next, struct hc_form, owner);
32 assert(f->type == &HC_ID_FORM);
33}
34
35static void eval_tests() {
36 struct hc_dsl dsl;

Callers 1

dsl_testsFunction · 0.85

Calls 4

hc_list_initFunction · 0.85
hc_forms_freeFunction · 0.85
hc_read_exprFunction · 0.85
hc_slocClass · 0.70

Tested by

no test coverage detected