Skip to content

test: nil pointers in slices and maps stay nil - #11

Merged
darxnet merged 2 commits into
mainfrom
test/nil-elements
Nov 16, 2026
Merged

darxnet merged 2 commits into
mainfrom
test/nil-elements

Conversation

@darxnet

@darxnet darxnet commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Regression test prompted by jinzhu/copier#246, where a nil map value
became a pointer to zero: []*int, map[string]*int, []*Inner and
map[string]*Inner with nil elements, through Copy and CopyFrom into a dst
that has objects in those places. README states the rule for elements.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Regression test prompted by jinzhu/copier#246, where a nil map value
became a pointer to zero: []*int, map[string]*int, []*Inner and
map[string]*Inner with nil elements, through Copy and CopyFrom into a dst
that has objects in those places. README states the rule for elements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@darxnet
darxnet merged commit 4a70945 into main Nov 16, 2026
9 checks passed
@darxnet
darxnet deleted the test/nil-elements branch November 16, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant