Searched refs:state_d (Results 1 – 3 of 3) sorted by relevance
| /zcbor-latest/tests/unit/test1_unit_tests/src/ |
| D | main.c | 21 ZCBOR_STATE_D(state_d, 0, payload, sizeof(payload), 10, 0); in ZTEST() 24 zassert_false(zcbor_int64_expect(state_d, 4), NULL); in ZTEST() 25 zassert_false(zcbor_int64_expect(state_d, 6), NULL); in ZTEST() 26 zassert_false(zcbor_int64_expect(state_d, -5), NULL); in ZTEST() 27 zassert_false(zcbor_int64_expect(state_d, -6), NULL); in ZTEST() 28 zassert_true(zcbor_int64_expect(state_d, 5), NULL); in ZTEST() 31 zassert_true(zcbor_int64_expect(state_d, 5), NULL); in ZTEST() 34 zassert_true(zcbor_int32_expect(state_d, 5), NULL); in ZTEST() 37 zassert_false(zcbor_int32_decode(state_d, &int32), NULL); in ZTEST() 38 zassert_true(zcbor_int64_decode(state_d, &int64), NULL); in ZTEST() [all …]
|
| /zcbor-latest/tests/unit/test2_cpp/src/ |
| D | main.cpp | 29 ZCBOR_STATE_D(state_d, 3, payload, sizeof(payload), 30, 0); in main() 32 state_d->constant_state->stop_on_error = true; in main() 72 zcbor_int32_expect(state_d, 1); in main() 73 zcbor_int64_expect(state_d, 2); in main() 74 zcbor_uint32_expect(state_d, 3); in main() 75 zcbor_uint64_expect(state_d, 4); in main() 76 zcbor_size_expect(state_d, 10); in main() 77 zcbor_int32_decode(state_d, &five); in main() 78 zcbor_int64_decode(state_d, &six); in main() 79 zcbor_uint32_decode(state_d, &seven); in main() [all …]
|
| /zcbor-latest/tests/unit/test3_float16/src/ |
| D | main.c | 59 ZCBOR_STATE_D(state_d, 0, payload, sizeof(payload), 1, 0); in ZTEST() 62 zassert_true(zcbor_float16_decode(state_d, &out), NULL); in ZTEST()
|