MCPcopy Create free account
hub / github.com/buke/quickjs-go / check_str

Function check_str

deps/quickjs/unicode_gen.c:2908–2919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2906#ifdef USE_TEST
2907
2908void check_str(const char *msg, int num, const int *in_buf, int in_len,
2909 const int *buf1, int len1,
2910 const int *buf2, int len2)
2911{
2912 if (len1 != len2 || tabcmp(buf1, buf2, len1) != 0) {
2913 printf("%d: ERROR %s:\n", num, msg);
2914 dump_str(" in", in_buf, in_len);
2915 dump_str("res", buf1, len1);
2916 dump_str("ref", buf2, len2);
2917 exit(1);
2918 }
2919}
2920
2921void check_cc_table(void)
2922{

Callers 1

normalization_testFunction · 0.85

Calls 3

tabcmpFunction · 0.85
dump_strFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected