mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 13:34:19 -04:00
general: change BARCODE_RAW_TEXT to write to new zint_symbol
fields `raw_segs` and `raw_seg_count` instead of `text`, and to do so for all symbologies, using new common funcs `rt_cpy()` etc. MICROPDF417: return ECC percentage in top byte of `option_1` DBAR_EXP_STK: return `option_2`/`option_3` feedback CLI: change warning text "ignoring" -> "**IGNORED**" GUI: show feedback for DBAR_EXP_STK, MICROPDF417, UPNQR ctest: fix recent inability to run tests via "ctest" on Windows (MSVC) by using cmake 3.22 feature `ENVIRONMENT_MODIFICATION` manual: document feedback and RAW_TEXT in new "Feedback" section; rephrase some symbology descriptions test suite: new general-use arg "-a"; add `func_name` to context; new "test_bwipp" test for testing BWIPP against ZXing-C++
This commit is contained in:
parent
d1bf02e156
commit
a6c225447e
120 changed files with 10511 additions and 5620 deletions
|
@ -70,7 +70,7 @@ static void test_check_colour_options(const testCtx *const p_ctx) {
|
|||
int i, ret;
|
||||
struct zint_symbol symbol = {0}; /* Suppress clang -fsanitize=memory false positive */
|
||||
|
||||
testStart("test_check_colour_options");
|
||||
testStart(p_ctx->func_name);
|
||||
|
||||
for (i = 0; i < data_size; i++) {
|
||||
|
||||
|
@ -116,7 +116,7 @@ static void test_colour_get_rgb(const testCtx *const p_ctx) {
|
|||
const int data_size = ARRAY_SIZE(data);
|
||||
int i, ret;
|
||||
|
||||
testStart("test_colour_get_rgb");
|
||||
testStart(p_ctx->func_name);
|
||||
|
||||
for (i = 0; i < data_size; i++) {
|
||||
/* Suppress clang-16 run-time exception MemorySanitizer: use-of-uninitialized-value (fixed in clang-17) */
|
||||
|
@ -176,7 +176,7 @@ static void test_colour_get_cmyk(const testCtx *const p_ctx) {
|
|||
const int data_size = ARRAY_SIZE(data);
|
||||
int i, ret;
|
||||
|
||||
testStart("test_colour_get_cmyk");
|
||||
testStart(p_ctx->func_name);
|
||||
|
||||
for (i = 0; i < data_size; i++) {
|
||||
/* Suppress clang -fsanitize=memory false positives */
|
||||
|
@ -214,7 +214,7 @@ static void test_quiet_zones(const testCtx *const p_ctx) {
|
|||
int comp_xoffset = 0;
|
||||
float left, right, top, bottom;
|
||||
|
||||
testStart("test_quiet_zones");
|
||||
testStart(p_ctx->func_name);
|
||||
|
||||
for (i = 1; i <= BARCODE_LAST; i++) {
|
||||
if (!ZBarcode_ValidID(i)) continue;
|
||||
|
@ -270,7 +270,7 @@ static void test_set_whitespace_offsets(const testCtx *const p_ctx) {
|
|||
float xoffset, yoffset, roffset, boffset, qz_right;
|
||||
int xoffset_si, yoffset_si, roffset_si, boffset_si, qz_right_si;
|
||||
|
||||
testStart("test_set_whitespace_offsets");
|
||||
testStart(p_ctx->func_name);
|
||||
|
||||
for (i = 0; i < data_size; i++) {
|
||||
if (testContinue(p_ctx, i)) continue;
|
||||
|
@ -361,7 +361,7 @@ static void test_fopen(const testCtx *const p_ctx) {
|
|||
char subdirname[1024 + 256];
|
||||
int dir_exists, subdir_exists;
|
||||
|
||||
testStart("test_fopen");
|
||||
testStart(p_ctx->func_name);
|
||||
|
||||
assert_nonnull(getcwd(cwdbuf, sizeof(cwdbuf)), "getcwd NULL (%d, %s)\n", errno, strerror(errno));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue