| 96 | } |
| 97 | |
| 98 | static void |
| 99 | test_utf8(const char *src, size_t len, int exp_err, unsigned line) { |
| 100 | int got_err; |
| 101 | |
| 102 | assert(len <= 255); |
| 103 | |
| 104 | got_err = utf8_check(src, len); |
| 105 | |
| 106 | ok(got_err == exp_err, "Got result %i, expected %i at line %u", |
| 107 | got_err, exp_err, line); |
| 108 | } |
| 109 | |
| 110 | #define TEST_UTF8(src, len, exp) \ |
| 111 | test_utf8(src, len, exp, __LINE__) |
nothing calls this directly
no test coverage detected