Closed rsulli55 closed 2 years ago
Merging #288 (6bf8e13) into master (5f3cc30) will increase coverage by
3.71%
. The diff coverage is59.25%
.
@@ Coverage Diff @@
## master #288 +/- ##
==========================================
+ Coverage 61.30% 65.01% +3.71%
==========================================
Files 95 95
Lines 18029 18044 +15
==========================================
+ Hits 11053 11732 +679
+ Misses 6976 6312 -664
Impacted Files | Coverage Δ | |
---|---|---|
automates/program_analysis/CAST2GrFN/cast.py | 71.54% <50.00%> (+16.30%) |
:arrow_up: |
...mates/program_analysis/GCC2GrFN/gcc_ast_to_cast.py | 76.62% <85.71%> (+66.52%) |
:arrow_up: |
automates/model_analysis/graph_manipulation.py | 70.19% <0.00%> (-0.56%) |
:arrow_down: |
automates/model_assembly/metadata.py | 89.23% <0.00%> (+1.13%) |
:arrow_up: |
...mates/program_analysis/CAST2GrFN/model/cast/var.py | 68.96% <0.00%> (+1.72%) |
:arrow_up: |
...s/CAST2GrFN/visitors/cast_function_call_visitor.py | 85.71% <0.00%> (+2.67%) |
:arrow_up: |
...ates/program_analysis/CAST2GrFN/model/cast/name.py | 68.96% <0.00%> (+3.44%) |
:arrow_up: |
.../program_analysis/CAST2GrFN/model/cast/ast_node.py | 53.48% <0.00%> (+6.97%) |
:arrow_up: |
...gram_analysis/CAST2GrFN/model/cast_to_air_model.py | 77.68% <0.00%> (+25.14%) |
:arrow_up: |
... and 4 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 5f3cc30...6bf8e13. Read the comment docs.
Changes to
gcc_ast_to_cast.py
andcast.py
to accomodate testinggcc_ast_to_cast.py
so that CAST nodeSourceRef
s only use the file name and not the full path to the file.cast.py
changed the equality check on CAST objects so thatName
nodes do not use the auto generated Swagger__eq__
method. The auto generated method will check the numerical id's of Name nodes, and we do not expect those to be constant across runs of CAST generation. Instead, the equality check will just make sure the string names are the same.Updating old tests for GCC plugin to GrFN
test_gcc_plugin_c.py
totest_gcc_plugin_to_grfn_c.py
because it tests all the way to GrFN executionAdded new tests
gcc_ast_to_cast.py
(AST json to CAST).pytest
s parameterize functionality. To add more tests, all that is needed is to create the two test data files (C and AST json or AST json and CAST json) and then place these files in the corresponding test data directory. Tests for these file will automatically be added to the test suite.