Home | History | Annotate | Download | only in tests

Lines Matching refs:copy_len

689     size_t copy_len = random() % state.MAX_LEN;
693 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len);
695 if (copy_len > ptr1_len) {
696 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len);
699 expected_end = copy_len;
702 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len));
726 size_t copy_len = random() % state.MAX_LEN;
730 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len);
732 if (copy_len > ptr1_len) {
733 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len);
736 expected_end = copy_len;
739 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len));