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

yitsushi / totp-cli / 8455455856
29%
master: 20%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/crypto-0.45.0
DEFAULT BRANCH: master
Ran 27 Mar 2024 04:44PM UTC
Jobs 1
Files 23
Run time 1min
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

27 Mar 2024 04:43PM UTC coverage: 29.029% (+13.0%) from 16.075%
8455455856

push

github

yitsushi
refactor: cleanup, mostly tests

In preparation for more work, related to #112, #37 and #8.

- Migrated all tests to use testify's `Suite` instead of direct `assert`
  calls.
- Simplified how the credentials file location is determined, now it's
  defined in one simple function.

Changes I may revert: I hate string concatenation, it's just ugly in my
eyes, so I may just add that linter to disabled and revert to `Sprintf`. I
know it's more efficient, but not on this scale.

Closes #8

References:
- https://github.com/yitsushi/totp-cli/issues/8
- https://github.com/yitsushi/totp-cli/issues/37
- https://github.com/yitsushi/totp-cli/issues/112

15 of 53 new or added lines in 8 files covered. (28.3%)

5 existing lines in 3 files now uncovered.

299 of 1030 relevant lines covered (29.03%)

2.11 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% internal/security/error.go
1
0.0
-50.0% internal/storage/error.go
2
0.0
0.0% internal/cmd/set_length.go
2
0.0
0.0% internal/cmd/set_prefix.go
3
0.0
0.0% internal/cmd/rename.go
5
0.0
0.0% internal/cmd/error.go
24
63.43
51.28% internal/storage/filebackend.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/cmd/error.go
1
63.43
51.28% internal/storage/filebackend.go
3
0.0
-50.0% internal/storage/error.go
Jobs
ID Job ID Ran Files Coverage
1 8455455856.1 27 Mar 2024 04:44PM UTC 23
29.03
GitHub Action Run
Source Files on build 8455455856
  • Tree
  • List 23
  • Changed 9
  • Source Changed 9
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8455455856
  • cad57ab3 on github
  • Prev Build on main (#8145716467)
  • Next Build on some-cleanup (#8455476590)
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