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

yitsushi / totp-cli
41%
master: 20%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Repo Added 22 Jun 2020 10:41AM UTC
Files 26
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 refactor-storage
branch: refactor-storage
CHANGE BRANCH
x
Reset
  • refactor-storage
  • 125-vendor-package-for-gentoo
  • 133-add-sha2
  • 136-add-time-period
  • 38-auto-versioning
  • 47-clear-prefix
  • 74-fix-update-error-handling
  • 88-remaining-time
  • 95-fix-no-newline-input
  • add-prefix
  • add-release-signing
  • add-signing-keys-to-readme
  • add-update-command
  • dependabot/go_modules/filippo.io/age-1.2.1
  • dependabot/go_modules/github.com/go-viper/mapstructure/v2-2.3.0
  • dependabot/go_modules/github.com/go-viper/mapstructure/v2-2.4.0
  • dependabot/go_modules/golang.org/x/crypto-0.17.0
  • dependabot/go_modules/golang.org/x/crypto-0.31.0
  • document-default-cred-path
  • fix-release-build
  • import-command
  • improve-kdf-test-pr-check
  • main
  • master
  • pass-with-env
  • put-windows-back
  • refs/tags/v1.2.0
  • refs/tags/v1.2.1
  • refs/tags/v1.2.2
  • refs/tags/v1.2.3
  • refs/tags/v1.2.4
  • refs/tags/v1.2.5
  • refs/tags/v1.2.6
  • refs/tags/v1.2.7
  • refs/tags/v1.3.0
  • refs/tags/v1.3.1
  • refs/tags/v1.3.2
  • refs/tags/v1.3.3
  • refs/tags/v1.4.0
  • refs/tags/v1.5.0
  • refs/tags/v1.5.1
  • refs/tags/v1.5.2
  • refs/tags/v1.5.3
  • refs/tags/v1.6.0
  • refs/tags/v1.7.0
  • remove-panic
  • remove-update-command
  • remove-util
  • rename-account
  • return-nil
  • small-changes
  • some-cleanup
  • some-random-fixes
  • try-to-fix-autocomplete
  • update-checkout-action
  • update-deps
  • update-deps-20240619
  • update-go-cleanup
  • update-some-comments
  • update-workflow-versions
  • use-urfave
  • v1.1.10
  • v1.1.11
  • v1.1.12
  • v1.1.13
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.8.4
  • v1.8.5
  • v1.8.6
  • v1.8.7
  • v1.8.8
  • v1.9.0
  • v1.9.1
  • v1.9.2

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

Relevant lines Covered
Build:
Build:
399 RELEVANT LINES 163 COVERED LINES
3.91 HITS PER LINE
Source Files on refactor-storage
  • Tree
  • List 8
  • 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
7684023833 refactor-storage 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.... Pull #113 28 Jan 2024 06:40AM UTC yitsushi github
40.85
See All Builds (252)
  • 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