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

srishanbhattarai / nepcal / 149
79%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2019 12:32AM UTC
Jobs 1
Files 4
Run time 1s
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

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.

15 of 15 new or added lines in 1 file covered. (100.0%)

242 of 273 relevant lines covered (88.64%)

547.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 149.1 06 Aug 2019 12:32AM UTC 0
88.64
Travis Job 149.1
Source Files on build 149
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #149
  • 15aab02a on github
  • Prev Build on master (#142)
  • Next Build on master (#151)
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