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

srishanbhattarai / nepcal
89%
master: 79%

Build:
Build:
LAST BUILD BRANCH: robustness
DEFAULT BRANCH: master
Repo Added 20 May 2018 03:43PM UTC
Files 7
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

LAST BUILD ON BRANCH v0.6.0
branch: v0.6.0
CHANGE BRANCH
x
Reset
  • v0.6.0
  • brew
  • circle-ci
  • correctness
  • dateconv
  • dependabot/add-v2-config-file
  • dependabot/go_modules/github.com/davecgh/go-spew-1.1.1
  • dependabot/go_modules/github.com/fatih/color-1.10.0
  • dependabot/go_modules/github.com/fatih/color-1.11.0
  • dependabot/go_modules/github.com/fatih/color-1.12.0
  • dependabot/go_modules/github.com/stretchr/testify-1.3.0
  • dependabot/go_modules/github.com/stretchr/testify-1.4.0
  • dependabot/go_modules/github.com/stretchr/testify-1.5.0
  • dependabot/go_modules/github.com/stretchr/testify-1.5.1
  • dependabot/go_modules/github.com/stretchr/testify-1.6.0
  • dependabot/go_modules/github.com/stretchr/testify-1.6.1
  • dependabot/go_modules/github.com/stretchr/testify-1.7.0
  • dependabot/go_modules/github.com/urfave/cli-1.21.0
  • dependabot/go_modules/github.com/urfave/cli-1.22.2
  • dependabot/go_modules/github.com/urfave/cli-1.22.3
  • dependabot/go_modules/github.com/urfave/cli/v2-2.3.0
  • docs-update
  • epoch-independence
  • experimental-grpc
  • fix-overflows
  • master
  • more-data
  • more-data-2
  • move-calendar
  • nep-numerals
  • panic-fix
  • robustness
  • stateful-writer
  • travis-go113
  • v0.3.0
  • v0.3.1
  • v0.4.0
  • v0.5.0
  • v1.0.0
  • v1.1.0
  • v1.2.0
  • v2

06 Aug 2019 12:30AM UTC coverage: 88.645%. First build
150

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

Relevant lines Covered
Build:
Build:
273 RELEVANT LINES 242 COVERED LINES
547.4 HITS PER LINE
Source Files on v0.6.0
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
150 v0.6.0 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, curren... push 06 Aug 2019 12:58AM UTC srishanbhattarai travis-ci
88.64
See All Builds (207)
  • Repo on GitHub
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

© 2025 Coveralls, Inc