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

yitsushi / totp-cli / 7684023833
41%
master: 20%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/crypto-0.45.0
DEFAULT BRANCH: master
Ran 28 Jan 2024 06:40AM UTC
Jobs 1
Files 8
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

28 Jan 2024 06:36AM UTC coverage: 40.852% (+1.3%) from 39.583%
7684023833

Pull #113

github

yitsushi
refactor: use Storage interface instead of direct struct

It can get quiet hard to test structs in Go and functions using them.
With this, the rest of the code can be mocked easier with a TestBackend
which is just sits in memory and no encryption. The encryption should be
tested on storage layer, but the rest of the application should care
only about the exposed functions.

related to #8 and #37

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

Signed-off-by: Victoria Nadasdi <victoria@efertone.me>
Pull Request #113: refactor: use Storage interface instead of direct struct

163 of 399 relevant lines covered (40.85%)

3.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7684023833.1 28 Jan 2024 06:40AM UTC 8
40.85
GitHub Action Run
Source Files on build 7684023833
  • Tree
  • List 8
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #7684023833
  • Pull Request #113
  • PR Base - main (#7683964698)
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