vektah / dataloaden

go generate based DataLoader
MIT License
528 stars 79 forks source link

Copy values when priming the cache #8

Closed vektah closed 6 years ago

vektah commented 6 years ago

This prevents the cache all pointing to the same value when priming from a list of slices and passing a reference in.

codecov[bot] commented 6 years ago

Codecov Report

Merging #8 into master will increase coverage by 0.15%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage   86.36%   86.51%   +0.15%     
==========================================
  Files           2        2              
  Lines          88       89       +1     
==========================================
+ Hits           76       77       +1     
  Misses         11       11              
  Partials        1        1
Impacted Files Coverage Δ
example/userloader_gen.go 97.46% <100%> (+0.03%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 07f8e80...c1810d2. Read the comment docs.