Lines Matching refs:clen
360 int clen; in ZTEST() local
363 clen = cbprintf_package_copy(package, sizeof(package), NULL, 0, in ZTEST()
367 zassert_equal(clen, len + (int)strlen(test_str) + 1); in ZTEST()
369 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) cpackage[clen]; in ZTEST()
374 zassert_equal(clen, clen2); in ZTEST()
377 zassert_equal(clen, len + (int)strlen(test_str) + 1); in ZTEST()
389 check_package(cpackage, clen, exp_str); in ZTEST()
424 int clen; in ZTEST() local
427 clen = cbprintf_package_copy(package, sizeof(package), NULL, 0, in ZTEST()
431 zassert_equal(clen, len + (int)strlen(test_str) + 1); in ZTEST()
433 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) cpackage[clen]; in ZTEST()
438 zassert_equal(clen, clen2); in ZTEST()
441 zassert_equal(clen, len + (int)strlen(test_str) + 1); in ZTEST()
452 check_package(package, clen, exp_str); in ZTEST()
453 check_package(cpackage, clen, exp_str); in ZTEST()
507 int clen; in ZTEST() local
512 clen = cbprintf_package_copy(package, sizeof(package), NULL, 0, in ZTEST()
516 zassert_equal(clen, len + (int)strlen(test_str) + (int)strlen(cstr) + 2); in ZTEST()
520 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) cpackage[clen]; in ZTEST()
525 zassert_equal(clen, clen2); in ZTEST()
535 check_package(cpackage, clen, exp_str); in ZTEST()
541 clen = cbprintf_package_copy(package, sizeof(package), NULL, 0, in ZTEST()
545 zassert_equal(clen, len + (int)strlen(test_str1) + (int)strlen(test_str2) + 2 - 2, in ZTEST()
547 clen, len + (int)strlen(test_str1) + (int)strlen(test_str2) + 2 - 2); in ZTEST()
549 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) cpackage2[clen]; in ZTEST()
554 zassert_equal(clen, clen2); in ZTEST()
564 check_package(cpackage2, clen, exp_str); in ZTEST()
629 int clen; in ZTEST() local
632 clen = cbprintf_package_copy(package, sizeof(package), NULL, 0, in ZTEST()
639 zassert_equal(clen, len + (int)str_append_len); in ZTEST()
641 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) cpackage[clen]; in ZTEST()
646 zassert_equal(clen, clen2); in ZTEST()
656 check_package(cpackage, clen, exp_str); in ZTEST()
659 clen = cbprintf_package_copy(package, sizeof(package), NULL, 0, in ZTEST()
663 zassert_equal(clen, len + (int)strlen(test_str1) + 1); in ZTEST()
665 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) cpackage2[clen]; in ZTEST()
670 zassert_equal(clen, clen2); in ZTEST()
680 check_package(cpackage2, clen, exp_str); in ZTEST()
695 int clen, clen2; in cbprintf_rw_loc_const_char_ptr() local
738 clen = cbprintf_package_copy(spackage, sizeof(spackage), NULL, 0, in cbprintf_rw_loc_const_char_ptr()
749 zassert_equal(clen, exp_len, "clen:%d exp_len:%d", clen, exp_len); in cbprintf_rw_loc_const_char_ptr()
751 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) cpackage[clen]; in cbprintf_rw_loc_const_char_ptr()
756 zassert_equal(clen, clen2); in cbprintf_rw_loc_const_char_ptr()
767 check_package(cpackage, clen, exp_str); in cbprintf_rw_loc_const_char_ptr()
856 int slen, clen; in ZTEST() local
883 clen = cbprintf_package_convert(spackage, slen, NULL, 0, copy_flags, NULL, 0); in ZTEST()
884 zassert_true(clen > 0); in ZTEST()
886 clen = cbprintf_package_convert(spackage, slen, convert_cb, &ctx, copy_flags, NULL, 0); in ZTEST()
887 zassert_true(clen > 0); in ZTEST()
889 zassert_equal((int)ctx.offset, clen); in ZTEST()
901 int slen, clen; in ZTEST() local
930 clen = cbprintf_package_convert(spackage, slen, NULL, 0, copy_flags, in ZTEST()
932 zassert_true(clen > 0); in ZTEST()
939 clen = cbprintf_package_convert(spackage, slen, convert_cb, &ctx, copy_flags, in ZTEST()
941 zassert_true(clen > 0); in ZTEST()
943 zassert_equal((int)ctx.offset, clen); in ZTEST()
952 int slen, clen, olen; in ZTEST() local
979 clen = cbprintf_package_convert(spackage, slen, NULL, 0, copy_flags, NULL, 0); in ZTEST()
980 zassert_true(clen >= 0); in ZTEST()
981 zassert_true((size_t)clen == slen + sizeof(test_str1) + 1/*null*/ - 2 /* arg+ro idx gone*/); in ZTEST()
983 clen = cbprintf_package_convert(spackage, slen, convert_cb, &ctx, copy_flags, NULL, 0); in ZTEST()
984 zassert_true(clen > 0); in ZTEST()
986 zassert_equal((int)ctx.offset, clen); in ZTEST()