• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

srishanbhattarai / nepcal / 149 / 1
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2019 12:32AM UTC
Files 4
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Aug 2019 12:30AM UTC coverage: 88.645% (-0.6%) from 89.231%
149.1

push

travis-ci

srishanbhattarai
Add function to calculate total number of days spanned in current year (#28)

* Add function to calculate total number of days spanned in the current year

* Create a package variable to be able to mock time in tests

* Fix calculation, current month should be skipped

* Add tests for total days spanned

* Remove comma from test names

* Use underscore naming strategy for dates in test names

* Format code to put related pieces together

* Create a private function to calculate total days spanned

This abstracts away the implementation from TotalDaysSpanned() and we can pass our own value for
time in tests.

242 of 273 relevant lines covered (88.64%)

547.4 hits per line

Source Files on job 149.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 82
  • Travis Job 149.1
  • 15aab02a on github
  • Prev Job for on master (#142.1)
  • Next Job for on master (#151.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc