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

Function reflect_tests

reflect/tests.c:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "reflect.h"
3
4void reflect_tests() {
5 struct hc_value v;
6 hc_value_init(&v, &HC_STRING)->as_string = strdup("foo");
7 hc_defer(hc_value_deinit(&v));
8 struct hc_value c;
9 hc_value_copy(&c, &v);
10 hc_defer(hc_value_deinit(&c));
11 assert(strcmp(c.as_string, v.as_string) == 0);
12}

Callers 1

mainFunction · 0.85

Calls 3

hc_value_initFunction · 0.85
hc_value_deinitFunction · 0.85
hc_value_copyFunction · 0.85

Tested by

no test coverage detected