It will be used to get a canonical id for use in message keys
in Kafka.
Details
Diff Detail
- Repository
- rDCORE Foundations and core functionalities
- Branch
- bencode-encoder
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 7903 Build 11375: tox-on-jenkins Jenkins Build 11374: arc lint + arc unit
Event Timeline
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/290/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/291/ for more details.
| swh/core/bencode.py | ||
|---|---|---|
| 5 | It really misses a docstring at module level to explain what it is and how to use it, and how are basic types serialized by this encoder. | |
| 54 | I don't get the list used to gather results here. Why isn't this just a generator? | |
| swh/core/tests/test_bencode.py | ||
| 12 | why not using pytest's test functions here? What's the value of using a TestCase? | |
rewrite with generators
| swh/core/bencode.py | ||
|---|---|---|
| 5 | I'm not sure what to write here; there's a single public function, and it's already documented. | |
| 54 | Because I didn't think of using a generator. I just rewrote it to use a generator, the code is almost the same (although generators are slightly slower), so I don't really care either way * shrug * | |
| swh/core/tests/test_bencode.py | ||
| 12 | I use assertRaises. | |
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/292/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/293/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/294/ for more details.