georgysavva / scany

Library for scanning data from a database into Go structs and more
MIT License
1.24k stars 67 forks source link

Fix ScanAll() for scannable types #77

Closed georgysavva closed 2 years ago

georgysavva commented 2 years ago

Add exception for scannable types when not taking the second pointer of structs in ScanAll().

codecov[bot] commented 2 years ago

Codecov Report

Merging #77 (2f4a4e5) into master (b4db33e) will decrease coverage by 0.04%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
- Coverage   86.90%   86.87%   -0.04%     
==========================================
  Files           5        5              
  Lines         336      335       -1     
==========================================
- Hits          292      291       -1     
  Misses         33       33              
  Partials       11       11              
Flag Coverage Δ
unittests 86.87% <100.00%> (-0.04%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
dbscan/dbscan.go 81.42% <100.00%> (-0.16%) :arrow_down:
dbscan/rowscanner.go 96.25% <100.00%> (ø)

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 b4db33e...2f4a4e5. Read the comment docs.