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() 71 zassert_equal(sizeof("world") - 1, world.len, "Expected length %d", in ZTEST() 73 zassert_equal(0, memcmp(world.value, "world", world.len), in ZTEST() 74 "Expected \"world\", got %.*s", (int)world.len, world.value); in ZTEST() 81 struct zcbor_string world; in ZTEST() local [all …]
|