Searched refs:copy_len (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | string_test.cpp | 672 size_t copy_len = random() % state.MAX_LEN; in TEST() local 676 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST() 678 if (copy_len > ptr1_len) { in TEST() 679 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST() 682 expected_end = copy_len; in TEST() 685 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len)); in TEST() 709 size_t copy_len = random() % state.MAX_LEN; in TEST() local 713 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST() 715 if (copy_len > ptr1_len) { in TEST() 716 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST() [all …]
|