wolffshots / phocus

Communication app to fetch data from an inverter over serial and output to mqtt
zlib License
4 stars 1 forks source link

test: more testing testing testing #20

Closed wolffshots closed 1 year ago

codacy-production[bot] commented 1 year ago

Coverage summary from Codacy

Merging #20 (a324cdc58b48b3bb93e67c463ebb8c20ce6b2404) into main (d464935fe5049f7713df9842e7c38c5d90476aad) - See PR on Codacy

Coverage variation Diff coverage
:white_check_mark: +22.80% (target: -1.00%) 69.08%
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (d464935fe5049f7713df9842e7c38c5d90476aad) | 603 | 238 | 39.47% | | | Head commit (a324cdc58b48b3bb93e67c463ebb8c20ce6b2404) | 705 (+102) | 439 (+201) | 62.27% (**+22.80%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#20) | 152 | 105 | **69.08%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

codecov[bot] commented 1 year ago

Codecov Report

Merging #20 (a324cdc) into main (d464935) will increase coverage by 23.29%. The diff coverage is 66.44%.

@@             Coverage Diff             @@
##             main      #20       +/-   ##
===========================================
+ Coverage   37.60%   60.90%   +23.29%     
===========================================
  Files           9       10        +1     
  Lines         593      688       +95     
===========================================
+ Hits          223      419      +196     
+ Misses        364      262      -102     
- Partials        6        7        +1     
Impacted Files Coverage Δ
mqtt/mqtt.go 0.00% <0.00%> (ø)
serial/serial.go 58.69% <0.00%> (-10.54%) :arrow_down:
main.go 8.57% <9.09%> (+1.12%) :arrow_up:
messages/QPGSn.go 90.35% <71.42%> (+43.56%) :arrow_up:
messages/QID.go 79.62% <75.00%> (+60.02%) :arrow_up:
messages/generic.go 84.05% <78.57%> (+69.51%) :arrow_up:
sensors/sensors.go 72.91% <92.10%> (+72.91%) :arrow_up:
api/api.go 100.00% <100.00%> (+16.66%) :arrow_up:
crc/crc.go 100.00% <100.00%> (ø)