Searched refs:copy_len (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | string_test.cpp | 701 size_t copy_len = random() % state.MAX_LEN; in TEST() local 705 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST() 707 if (copy_len > ptr1_len) { in TEST() 708 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST() 711 expected_end = copy_len; in TEST() 714 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len)); in TEST() 738 size_t copy_len = random() % state.MAX_LEN; in TEST() local 742 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST() 744 if (copy_len > ptr1_len) { in TEST() 745 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST() [all …]
|