Searched refs:decode_len (Results 1 – 4 of 4) sorted by relevance
/zcbor-3.6.0/tests/decode/test3_simple/src/ |
D | main.c | 434 size_t decode_len; in ZTEST() local 439 zassert_equal(ZCBOR_SUCCESS, cbor_decode_Pet(input, sizeof(input), &pet, &decode_len), ""); in ZTEST() 440 zassert_equal(sizeof(input), decode_len, NULL); in ZTEST() 484 size_t decode_len; in ZTEST() local 486 sizeof(serial_rec_input1), &upload, &decode_len); in ZTEST() 488 zassert_equal(sizeof(serial_rec_input1), decode_len, NULL); in ZTEST() 508 size_t decode_len; in ZTEST() local 510 sizeof(serial_rec_input2), &upload, &decode_len); in ZTEST() 512 zassert_equal(sizeof(serial_rec_input2), decode_len, NULL); in ZTEST()
|
/zcbor-3.6.0/tests/decode/test1_suit_old_formats/src/ |
D | main.c | 104 size_t decode_len; in ZTEST() local 113 &outerwrapper, &decode_len), in ZTEST() 115 zassert_equal(sizeof(test_vector2), decode_len, NULL); in ZTEST() 152 size_t decode_len; in ZTEST() local 161 &outerwrapper, &decode_len), in ZTEST() 163 zassert_equal(sizeof(test_vector3), decode_len, NULL); in ZTEST() 202 size_t decode_len; in ZTEST() local 206 sizeof(test_vector4), &outerwrapper4, &decode_len), "test_vector failed"); in ZTEST() 207 zassert_equal(sizeof(test_vector4), decode_len, NULL); in ZTEST()
|
/zcbor-3.6.0/tests/decode/test2_suit/src/ |
D | main.c | 42 size_t decode_len; in ZTEST() local 53 &outerwrapper1, &decode_len); in ZTEST() 55 zassert_equal(sizeof(test_vector1), decode_len, NULL); in ZTEST() 148 &sequence, &decode_len); in ZTEST() 155 .len, decode_len, NULL); in ZTEST() 181 &sequence, &decode_len); in ZTEST() 186 .len, decode_len, NULL); in ZTEST()
|
/zcbor-3.6.0/tests/decode/test5_corner_cases/src/ |
D | main.c | 42 size_t decode_len = 0xFFFFFFFF; in ZTEST() local 60 ret = cbor_decode_Numbers(payload_numbers1, sizeof(payload_numbers1) - 1, &numbers, &decode_len); in ZTEST() 62 zassert_equal(0xFFFFFFFF, decode_len, NULL); // Should be untouched in ZTEST() 64 sizeof(payload_numbers1) + 1, &numbers, &decode_len), NULL); // Payload too large in ZTEST() 65 zassert_equal(sizeof(payload_numbers1), decode_len, NULL); in ZTEST() 79 size_t decode_len = 0xFFFFFFFF; in ZTEST() local 204 sizeof(payload_numbers2), &numbers2, &decode_len), NULL); in ZTEST() 214 sizeof(payload_numbers2_1), &numbers2, &decode_len); in ZTEST() 225 sizeof(payload_numbers2_inv2), &numbers2, &decode_len); in ZTEST() 229 sizeof(payload_numbers2_inv3), &numbers2, &decode_len), NULL); in ZTEST() [all …]
|