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

kainonly / go / 20985438094
89%

Build:
DEFAULT BRANCH: main
Ran 14 Jan 2026 07:03AM UTC
Jobs 1
Files 13
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

14 Jan 2026 07:01AM UTC coverage: 90.53% (-2.1%) from 92.587%
20985438094

push

github

kainonly
refactor(totp): 重构TOTP实现并优化测试

- 移除旧的手写TOTP逻辑,改用github.com/pquerna/otp库实现
- 新增GenerateSecret生成密钥功能,支持自定义参数
- 添加Validate和ValidateWithOpts方法,实现TOTP代码校验
- 清理和重写相关测试,覆盖生成和验证功能
- 删除过时的测试代码文件totp/checkcode_more_test.go和totp/compute_test.go
- 更新go.mod引入pquerna/otp依赖
- 修改cipher decode测试,添加日志输出调试信息

22 of 29 new or added lines in 1 file covered. (75.86%)

7 existing lines in 2 files now uncovered.

564 of 623 relevant lines covered (90.53%)

4.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
68.42
-29.01% totp/totp.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
91.3
0.83% cipher/cipher.go
5
68.42
-29.01% totp/totp.go
Jobs
ID Job ID Ran Files Coverage
1 20985438094.1 14 Jan 2026 07:03AM UTC 13
90.53
GitHub Action Run
Source Files on build 20985438094
  • Tree
  • List 13
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 912f0576 on github
  • Prev Build on main (#19785875931)
  • Next Build on main (#20985657866)
  • Delete
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