coapjs / node-coap

CoAP - Node.js style
MIT License
531 stars 154 forks source link

refactor: apply last refactorings before 0.26.0 #309

Closed JKRhb closed 2 years ago

JKRhb commented 2 years ago

This PR adds most of the null and type checks from #293 to the current state of the project to further decrease diff size. The project should also already benefit a little from the changes in terms of stability and readability. For most part, the changes are rather trivial, though.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1352374966


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/observe_read_stream.js 2 3 66.67%
lib/segmentation.js 2 4 50.0%
lib/agent.js 64 77 83.12%
lib/server.js 116 155 74.84%
<!-- Total: 207 262 79.01% -->
Files with Coverage Reduction New Missed Lines %
lib/option_converter.js 1 91.11%
lib/segmentation.js 1 84.62%
lib/agent.js 2 83.44%
<!-- Total: 4 -->
Totals Coverage Status
Change from base Build 1351780721: -1.9%
Covered Lines: 1100
Relevant Lines: 1210

💛 - Coveralls