Closed egawata closed 3 years ago
Merging #16 (02bcfef) into master (bfdfaf5) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #16 +/- ##
=======================================
Coverage 68.49% 68.49%
=======================================
Files 1 1
Lines 273 273
=======================================
Hits 187 187
Misses 70 70
Partials 16 16
Impacted Files | Coverage Δ | |
---|---|---|
main.go | 68.49% <100.00%> (ø) |
Fixed #15
The reason of the problem seems to be the function
hasDeepCopy()
, which receivespointer
as an argument and returns it to callerreuseDeepCopy()
asisPointer
when a target object is found ingenerated
. However, at that time, theisPointer
should be determined by whetherDeepCopy()
of the object returns pointer value or non-pointer value, which depends on an option--pointer-receiver
.I fixed the problem by passing
pointerReceiverF
tohasDeepCopy()
.