Lines Matching +full:extra +full:- +full:byte
3 * SPDX-License-Identifier: Apache-2.0
16 char wsmem[BUFLEN + 1]; /* Extra 1 to have a null for easier debugging */
22 /* Write one byte */ in ZTEST()
28 /* Read the byte back */ in ZTEST()
42 zassert_true(ws->seq == 1 + strlen(msg), ""); in ZTEST()
43 zassert_true(ws->start == 1, ""); in ZTEST()
44 zassert_true(ws->end == 0, ""); in ZTEST()
53 zassert_true(seq == ws->seq, ""); in ZTEST()
63 /* Write a "short-enough" string that fits in before the wrap, in ZTEST()
67 sys_winstream_write(ws, msg, ws->len / 2); in ZTEST()
69 zassert_true(bytes == ws->len / 2, ""); in ZTEST()
70 zassert_true(seq == seq0 + ws->len / 2, ""); in ZTEST()
71 zassert_true(strncmp(readback, msg, ws->len / 2) == 0, ""); in ZTEST()
76 sys_winstream_write(ws, msg, ws->len / 2); in ZTEST()
78 zassert_true(bytes == ws->len / 2, ""); in ZTEST()
79 zassert_true(seq == seq0 + ws->len / 2, ""); in ZTEST()
80 zassert_true(strncmp(readback, msg, ws->len / 2) == 0, ""); in ZTEST()
88 for (int i = 0; i < (n + 1) * (ws->len + 1); i++) { in ZTEST()