8 func TestCopyToArray(t *testing.T) {
12 if !bytes.Equal(arr[:], bb) {
17 func TestCopyToSlicedArray(t *testing.T) {
19 CopyExact(arr[:], "hello")
20 if !bytes.Equal(arr[:], []byte("hello")) {
25 func TestCopyDestNotAddr(t *testing.T) {
34 CopyExact(arr, "nope")
37 func TestCopyLenMismatch(t *testing.T) {
45 CopyExact(make([]byte, 2), "abc")