abcxyz / abcxyz/jvs

Write UT for public methods if it is possible

未關閉
#108 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
cleanup good first issue
主要語言
Go
星號
8
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

### TL;DR

Write UT for public methods instead of private methods if it is possible

https://github.com/abcxyz/jvs/blob/23cdda185a8fc277ba798bfaf3e34543458f1934/pkg/jvscrypto/cert_action_api_test.go#L306 and
https://github.com/abcxyz/jvs/blob/23cdda185a8fc277ba798bfaf3e34543458f1934/pkg/jvscrypto/key_hosting_test.go#L124

### Detailed design

_No response_

### Alternatives considered

_No response_

### Additional information

_No response_

貢獻指南

開啟貢獻指南

研究方向

Look at the two linked test files: pkg/jvscrypto/cert_action_api_test.go and pkg/jvscrypto/key_hosting_test.go. Identify the public methods being tested indirectly via private methods. Refactor the tests to directly test the public methods instead. Run the existing tests to ensure they still pass after the change.

由索引模型根據 Issue 內容生成。

評估

領域
testing
Issue 類型
重構
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。