casvanluijtelaar / faker.dart

generate massive amounts of fake data in dart and flutter
Other
41 stars 7 forks source link

Fix date.between #4

Closed sassanh closed 2 years ago

sassanh commented 2 years ago

randomDays had the unit of "days" but it was sent to Duration constructor as milliseconds which caused all the randomly generated dates to be very close to the start.

codecov[bot] commented 2 years ago

Codecov Report

Merging #4 (ec4d2fe) into master (60f9bc8) will increase coverage by 0.13%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master       #4      +/-   ##
==========================================
+ Coverage   98.92%   99.05%   +0.13%     
==========================================
  Files          22       22              
  Lines         742      743       +1     
==========================================
+ Hits          734      736       +2     
+ Misses          8        7       -1     
Impacted Files Coverage Δ
lib/src/date.dart 100.00% <100.00%> (ø)
lib/src/name.dart 91.89% <0.00%> (+1.35%) :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 60f9bc8...ec4d2fe. Read the comment docs.

casvanluijtelaar commented 2 years ago

Available in the latest update.