Skip to content

Commit

Permalink
Update coverage on Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 22, 2024
1 parent c14d187 commit a7d1649
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Pytest](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/run-tests.yml) [![Lint with pylint](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/linter.yml/badge.svg)](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/linter.yml)

<!-- Pytest Coverage Comment:Begin -->
<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/README.md"><img alt="Coverage" src="https://img.shields.io/badge/Coverage-92%25-brightgreen.svg" /></a><details><summary>Coverage Report </summary><table><tr><th>File</th><th>Stmts</th><th>Miss</th><th>Cover</th><th>Missing</th></tr><tbody><tr><td colspan="5"><b>idsse/common</b></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/aws_utils.py">aws_utils.py</a></td><td>86</td><td>5</td><td>5</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/aws_utils.py#L 94%"> 94%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/config.py">config.py</a></td><td>68</td><td>8</td><td>8</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/config.py#L 88%"> 88%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/geo_image.py">geo_image.py</a></td><td>219</td><td>14</td><td>14</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/geo_image.py#L 94%"> 94%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/grid_proj.py">grid_proj.py</a></td><td>112</td><td>2</td><td>2</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/grid_proj.py#L 98%"> 98%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py">json_message.py</a></td><td>23</td><td>1</td><td>1</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py#L 96%"> 96%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py">log_util.py</a></td><td>43</td><td>3</td><td>3</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py#L 93%"> 93%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/netcdf_io.py">netcdf_io.py</a></td><td>47</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/path_builder.py">path_builder.py</a></td><td>128</td><td>10</td><td>10</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/path_builder.py#L 92%"> 92%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py">publish_confirm.py</a></td><td>151</td><td>13</td><td>13</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py#L 91%"> 91%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/rabbitmq_utils.py">rabbitmq_utils.py</a></td><td>61</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/utils.py">utils.py</a></td><td>103</td><td>14</td><td>14</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/utils.py#L 86%"> 86%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/validate_schema.py">validate_schema.py</a></td><td>40</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/vectaster.py">vectaster.py</a></td><td>188</td><td>30</td><td>30</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/vectaster.py#L 84%"> 84%</a></td></tr><tr><td><b>TOTAL</b></td><td><b>1269</b></td><td><b>100</b></td><td><b>92%</b></td><td>&nbsp;</td></tr></tbody></table></details>
<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/README.md"><img alt="Coverage" src="https://img.shields.io/badge/Coverage-92%25-brightgreen.svg" /></a><details><summary>Coverage Report </summary><table><tr><th>File</th><th>Stmts</th><th>Miss</th><th>Cover</th><th>Missing</th></tr><tbody><tr><td colspan="5"><b>idsse/common</b></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/aws_utils.py">aws_utils.py</a></td><td>86</td><td>5</td><td>5</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/aws_utils.py#L 94%"> 94%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/config.py">config.py</a></td><td>68</td><td>8</td><td>8</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/config.py#L 88%"> 88%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/geo_image.py">geo_image.py</a></td><td>219</td><td>14</td><td>14</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/geo_image.py#L 94%"> 94%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/grid_proj.py">grid_proj.py</a></td><td>112</td><td>2</td><td>2</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/grid_proj.py#L 98%"> 98%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py">json_message.py</a></td><td>23</td><td>1</td><td>1</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py#L 96%"> 96%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py">log_util.py</a></td><td>43</td><td>3</td><td>3</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py#L 93%"> 93%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/netcdf_io.py">netcdf_io.py</a></td><td>47</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/path_builder.py">path_builder.py</a></td><td>128</td><td>10</td><td>10</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/path_builder.py#L 92%"> 92%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py">publish_confirm.py</a></td><td>151</td><td>13</td><td>13</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py#L 91%"> 91%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/rabbitmq_utils.py">rabbitmq_utils.py</a></td><td>61</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/utils.py">utils.py</a></td><td>103</td><td>14</td><td>14</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/utils.py#L 86%"> 86%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/validate_schema.py">validate_schema.py</a></td><td>40</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/vectaster.py">vectaster.py</a></td><td>193</td><td>31</td><td>31</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/vectaster.py#L 84%"> 84%</a></td></tr><tr><td><b>TOTAL</b></td><td><b>1274</b></td><td><b>101</b></td><td><b>92%</b></td><td>&nbsp;</td></tr></tbody></table></details>
<!-- Pytest Coverage Comment:End -->

## Overview
Expand Down
28 changes: 14 additions & 14 deletions python/idsse_common/test/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
platform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.3.0
rootdir: /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common
plugins: cov-4.1.0
collected 211 items
collected 212 items

test/test_aws_utils.py .................. [ 8%]
test/test_config.py ............ [ 14%]
test/test_geo_image.py ........F......FFF..F [ 24%]
test/test_grid_proj.py ........................ [ 35%]
test/test_json_message.py ........... [ 40%]
test/test_log_util.py ..... [ 43%]
test/test_netcdf_io.py .... [ 45%]
test/test_log_util.py ..... [ 42%]
test/test_netcdf_io.py .... [ 44%]
test/test_path_builder.py ...................... [ 55%]
test/test_publish_confirm.py ......... [ 59%]
test/test_rabbitmq_utils.py ...... [ 62%]
test/test_utils.py ........................ [ 73%]
test/test_validate_criteria_schema.py ...... [ 76%]
test/test_validate_das_schema.py .............. [ 83%]
test/test_validate_das_web_schema.py ......... [ 87%]
test/test_validate_event_port_schema.py ..... [ 90%]
test/test_validate_new_data_schema.py ......... [ 94%]
test/test_vectaster.py ............ [100%]
test/test_validate_event_port_schema.py ..... [ 89%]
test/test_validate_new_data_schema.py ......... [ 93%]
test/test_vectaster.py ............. [100%]

=================================== FAILURES ===================================
____________________________ test_draw_geo_polygon _____________________________

proj = <idsse.common.grid_proj.GridProj object at 0x7eff725c90d0>
proj = <idsse.common.grid_proj.GridProj object at 0x7f0ae7a0c210>

def test_draw_geo_polygon(proj):
scale = 10
Expand Down Expand Up @@ -71,7 +71,7 @@ E y: array([7388, 112])
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/contextlib.py:81: AssertionError
_______________________________ test_draw_state ________________________________

proj = <idsse.common.grid_proj.GridProj object at 0x7eff7258a810>
proj = <idsse.common.grid_proj.GridProj object at 0x7f0ae79fe1d0>

def test_draw_state(proj):
data = numpy.zeros((proj.width, proj.height))
Expand Down Expand Up @@ -104,7 +104,7 @@ E y: array([11234306, 589])
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/contextlib.py:81: AssertionError
______________________________ test_add_one_state ______________________________

proj = <idsse.common.grid_proj.GridProj object at 0x7eff725f6750>
proj = <idsse.common.grid_proj.GridProj object at 0x7f0ae7bb1410>

def test_add_one_state(proj):
data = numpy.zeros((proj.width, proj.height))
Expand Down Expand Up @@ -137,7 +137,7 @@ E y: array([255, 0, 0])
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/contextlib.py:81: AssertionError
___________________________ test_add_list_of_states ____________________________

proj = <idsse.common.grid_proj.GridProj object at 0x7eff72589050>
proj = <idsse.common.grid_proj.GridProj object at 0x7f0ae7917290>

def test_add_list_of_states(proj):
data = numpy.zeros((proj.width, proj.height))
Expand Down Expand Up @@ -169,7 +169,7 @@ E y: array([255, 0, 0])
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/contextlib.py:81: AssertionError
_____________________________ test_add_all_states ______________________________

proj = <idsse.common.grid_proj.GridProj object at 0x7eff6fbd2150>
proj = <idsse.common.grid_proj.GridProj object at 0x7f0ae501b550>

def test_add_all_states(proj):
current_path = os.path.dirname(os.path.realpath(__file__))
Expand Down Expand Up @@ -228,9 +228,9 @@ idsse/common/publish_confirm.py 151 13 91%
idsse/common/rabbitmq_utils.py 61 0 100%
idsse/common/utils.py 103 14 86%
idsse/common/validate_schema.py 40 0 100%
idsse/common/vectaster.py 188 30 84%
idsse/common/vectaster.py 193 31 84%
-----------------------------------------------------
TOTAL 1269 100 92%
TOTAL 1274 101 92%

=========================== short test summary info ============================
FAILED test/test_geo_image.py::test_draw_geo_polygon - AssertionError:
Expand Down Expand Up @@ -273,4 +273,4 @@ Max absolute difference: 145
Max relative difference: 0.43137255
x: array([145, 145, 145], dtype=uint8)
y: array([255, 0, 0])
================== 5 failed, 206 passed, 2 warnings in 5.27s ===================
================== 5 failed, 207 passed, 2 warnings in 4.88s ===================
Loading

0 comments on commit a7d1649

Please sign in to comment.