georgysavva / scany

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

Add test cases for NULLable fields #42

Closed georgysavva closed 3 years ago

georgysavva commented 3 years ago

This PR adds test cases for fields that are specified by a pointer to handle NULL values that might come from the database. Originally those test cases were needed to prove that https://github.com/georgysavva/scany/pull/38 breaks that logic.

codecov[bot] commented 3 years ago

Codecov Report

Merging #42 (3c4b03e) into master (2eb5f0f) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #42   +/-   ##
=======================================
  Coverage   95.14%   95.14%           
=======================================
  Files           4        4           
  Lines         247      247           
=======================================
  Hits          235      235           
  Misses          6        6           
  Partials        6        6