georgysavva / scany

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

Remove dependency in testify/mock in non-test code #70

Closed nopcoder closed 2 years ago

nopcoder commented 2 years ago

dbscan/mock_startScannerFunc.go include reference to github.com/stretchr/testify/mock, by renaming the filename to mock_test.go the code will be include just for testing and remove the code and package from final binary.

codecov[bot] commented 2 years ago

Codecov Report

Merging #70 (d45ad83) into master (4f3a1ff) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #70   +/-   ##
=======================================
  Coverage   87.59%   87.59%           
=======================================
  Files           5        5           
  Lines         282      282           
=======================================
  Hits          247      247           
  Misses         29       29           
  Partials        6        6           
Flag Coverage Δ
unittests 87.59% <ø> (ø)

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