Searched refs:state_e (Results 1 – 3 of 3) sorted by relevance
| /zcbor-latest/tests/unit/test2_cpp/src/ |
| D | main.cpp | 28 ZCBOR_STATE_E(state_e, 3, payload, sizeof(payload), 0); in main() 31 state_e->constant_state->stop_on_error = true; in main() 35 zcbor_int32_put(state_e, 1); in main() 36 zcbor_int64_put(state_e, 2); in main() 37 zcbor_uint32_put(state_e, 3); in main() 38 zcbor_uint64_put(state_e, 4); in main() 39 zcbor_size_put(state_e, 10); in main() 40 zcbor_int32_encode(state_e, &five); in main() 41 zcbor_int64_encode(state_e, &six); in main() 42 zcbor_uint32_encode(state_e, &seven); in main() [all …]
|
| /zcbor-latest/tests/unit/test1_unit_tests/src/ |
| D | main.c | 20 ZCBOR_STATE_E(state_e, 0, payload, sizeof(payload), 0); in ZTEST() 23 zassert_true(zcbor_int64_put(state_e, 5), NULL); in ZTEST() 30 zassert_true(zcbor_int32_put(state_e, 5), NULL); in ZTEST() 33 zassert_true(zcbor_int64_put(state_e, 5), NULL); in ZTEST() 36 zassert_true(zcbor_int64_put(state_e, 5000000000), NULL); in ZTEST() 41 zassert_true(zcbor_int64_encode(state_e, &int64), NULL); in ZTEST() 45 zassert_true(zcbor_int64_put(state_e, 0x80000000), NULL); in ZTEST() 49 zassert_true(zcbor_int32_put(state_e, -505), NULL); in ZTEST() 52 zassert_true(zcbor_int64_put(state_e, -5000000000000), NULL); in ZTEST() 59 zassert_true(zcbor_uint64_put(state_e, ((uint64_t)INT64_MAX + 1)), NULL); in ZTEST() [all …]
|
| /zcbor-latest/tests/unit/test3_float16/src/ |
| D | main.c | 60 ZCBOR_STATE_E(state_e, 0, payload, sizeof(payload), 0); in ZTEST() 63 zassert_true(zcbor_float16_put(state_e, out)); in ZTEST()
|