D | main.c | 17 struct zcbor_string world; in ZTEST() local 19 ZCBOR_MAP_DECODE_KEY_DECODER("hello", zcbor_tstr_decode, &world), in ZTEST() 23 ZCBOR_MAP_DECODE_KEY_VAL(hello, zcbor_tstr_decode, &world), in ZTEST() 29 zassert_equal((void *)map_one[0].value_ptr, (void *)&world); in ZTEST() 40 struct zcbor_string world; in ZTEST() local 47 ZCBOR_MAP_DECODE_KEY_DECODER("hello", zcbor_tstr_decode, &world), in ZTEST() 54 /* { "hello":"world", "one":1, "bool_val":true } */ in ZTEST() 56 zcbor_tstr_put_lit(zsd, "hello") && zcbor_tstr_put_lit(zsd, "world") && in ZTEST() 71 zassert_equal(sizeof("world") - 1, world.len, "Expected length %d", in ZTEST() 72 sizeof("world") - 1); in ZTEST() [all …]
|