Lines Matching refs:truncated
14 bool truncated; in TEST() local
17 space_left = strpcpy_full(&s, space_left, "12345", &truncated); in TEST()
18 assert_se(!truncated); in TEST()
19 space_left = strpcpy_full(&s, space_left, "hey hey hey", &truncated); in TEST()
20 assert_se(!truncated); in TEST()
21 space_left = strpcpy_full(&s, space_left, "waldo", &truncated); in TEST()
22 assert_se(!truncated); in TEST()
23 space_left = strpcpy_full(&s, space_left, "ba", &truncated); in TEST()
24 assert_se(!truncated); in TEST()
25 space_left = strpcpy_full(&s, space_left, "r", &truncated); in TEST()
26 assert_se(!truncated); in TEST()
30 space_left = strpcpy_full(&s, space_left, "", &truncated); in TEST()
31 assert_se(!truncated); in TEST()
35 space_left = strpcpy_full(&s, space_left, "f", &truncated); in TEST()
36 assert_se(truncated); in TEST()
40 space_left = strpcpy_full(&s, space_left, "", &truncated); in TEST()
41 assert_se(!truncated); in TEST()
45 space_left = strpcpy_full(&s, space_left, "foo", &truncated); in TEST()
46 assert_se(truncated); in TEST()
55 bool truncated; in TEST() local
58 space_left = strpcpyf_full(&s, space_left, &truncated, "space left: %zu. ", space_left); in TEST()
59 assert_se(!truncated); in TEST()
60 space_left = strpcpyf_full(&s, space_left, &truncated, "foo%s", "bar"); in TEST()
61 assert_se(!truncated); in TEST()
65 space_left = strpcpyf_full(&s, space_left, &truncated, "%i", 42); in TEST()
66 assert_se(!truncated); in TEST()
70 space_left = strpcpyf_full(&s, space_left, &truncated, "%s", ""); in TEST()
71 assert_se(!truncated); in TEST()
75 space_left = strpcpyf_full(&s, space_left, &truncated, "%c", 'x'); in TEST()
76 assert_se(truncated); in TEST()
80 space_left = strpcpyf_full(&s, space_left, &truncated, "%s", ""); in TEST()
81 assert_se(!truncated); in TEST()
85 space_left = strpcpyf_full(&s, space_left, &truncated, "abc%s", "hoge"); in TEST()
86 assert_se(truncated); in TEST()
92 space_left = strpcpyf_full(&s, 12, &truncated, "00 left: %i. ", 999); in TEST()
93 assert_se(truncated); in TEST()
103 bool truncated; in TEST() local
106 space_left = strpcpyl_full(&s, space_left, &truncated, "waldo", " test", " waldo. ", NULL); in TEST()
107 assert_se(!truncated); in TEST()
108 space_left = strpcpyl_full(&s, space_left, &truncated, "Banana", NULL); in TEST()
109 assert_se(!truncated); in TEST()
113 space_left = strpcpyl_full(&s, space_left, &truncated, "", "", "", NULL); in TEST()
114 assert_se(!truncated); in TEST()
118 space_left = strpcpyl_full(&s, space_left, &truncated, "", "x", "", NULL); in TEST()
119 assert_se(truncated); in TEST()
123 space_left = strpcpyl_full(&s, space_left, &truncated, "hoge", NULL); in TEST()
124 assert_se(truncated); in TEST()
132 bool truncated; in TEST() local
135 space_left = strscpy_full(target, space_left, "12345", &truncated); in TEST()
136 assert_se(!truncated); in TEST()
145 bool truncated; in TEST() local
148 space_left = strscpyl_full(target, space_left, &truncated, "12345", "waldo", "waldo", NULL); in TEST()
149 assert_se(!truncated); in TEST()