aboutcode-org / aboutcode-org/purldb
Add doctest and tests for clearcode coordinate helpers
未關閉
- 主要語言
- HTML
- 星號
- 67
- 分支
- 69
- 平均合併
- 8 天 8 小時
- 30 天內合併 PR
- 1
描述
While reading `clearcode/cdutils.py`, I noticed that `str2coord()` still has a TODO for adding a doctest.
This helper parses ClearlyDefined coordinates from multiple input formats such as:
- `cd:/...` URLs
- `urn:...` strings
- plain coordinate paths
Proposed changes:
- add doctest examples to `str2coord()`
- add tests covering URL and URN parsing in the existing `clearcode/tests/test_sync.py`
- add a small test for `coord2str()` to verify namespace handling
Files involved:
- `clearcode/cdutils.py`
- `clearcode/tests/test_sync.py`
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。