AppLayerLabs / bdk-cpp

MIT License
7 stars 12 forks source link

Misc P2P improvements #117

Closed fcecin closed 2 months ago

fcecin commented 3 months ago

This PR in a nutshell:

Detailed:

NOTE: I reviewed Sonarqube's test coverage complaints and I think there's nothing relevant there.

fcecin commented 3 months ago

Set this branch to DRAFT again (WIP) because I will be adding more features to it.

Namely:

I will also try to write some test coverage to obtain that satisfying green checkmark from Sonarqube.

EDIT: disabling command-line args is not obvious, because the Options "singleton" does not look like a singleton in the process sense, but in the blockchain object sense. in unit testing you can have multiple Options objects, so you still need to be able to load and set process-wide options that apply to everything. For example, we don't want custom log levels or threading parameters for each simulated blockchain in unit testing.

bdk-cpp-sonarqube-app[bot] commented 3 months ago

Quality Gate failed Quality Gate failed

Failed conditions
38.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

fcecin commented 3 months ago

Unfortunately:

I don't think we need to spend time refining code coverage of things like exception handlers. Most of them are there preventively.