Skip to content

Conversation

@josephsnyder
Copy link
Contributor

Pass the newly captured deprecation information from CastXML to the
declarations of those objects.

Pass the newly captured deprecation information from CastXML to the
declarations of those objects.
@codecov-io
Copy link

codecov-io commented Jan 11, 2021

Codecov Report

Merging #138 (135f8c8) into develop (5f42a00) will increase coverage by 0.00%.
The diff coverage is 96.72%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #138   +/-   ##
========================================
  Coverage    91.68%   91.68%           
========================================
  Files          136      137    +1     
  Lines        10613    10671   +58     
========================================
+ Hits          9730     9784   +54     
- Misses         883      887    +4     
Flag Coverage Δ
unittests 91.68% <96.72%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
unittests/test_deprecation.py 95.74% <95.74%> (ø)
pygccxml/declarations/declaration.py 98.56% <100.00%> (+0.07%) ⬆️
pygccxml/parser/scanner.py 96.28% <100.00%> (+0.04%) ⬆️
unittests/test_all.py 100.00% <100.00%> (ø)
pygccxml/parser/project_reader.py 80.00% <0.00%> (-1.06%) ⬇️
pygccxml/declarations/cpptypes.py 94.72% <0.00%> (-0.23%) ⬇️
pygccxml/utils/utils.py 74.19% <0.00%> (+0.77%) ⬆️

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 5f42a00...135f8c8. Read the comment docs.

Copy link
Contributor

@tom-osika tom-osika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall


def _check_text_content(self, desired_text, comment_decl_string):
if comment_decl_string:
self.assertEqual(list, comment_decl_string)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

Suggested change
self.assertEqual(list, comment_decl_string)
self.assertEqual(desired_text, comment_decl_string)

Also, how is this passing CI currently? Comparing the Python token list with comment_decl_string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's likely due to the fact that the check function is getting an empty string to check against in the version of CastXML that is being used. The if is there to avoid erroring if the test is run against an older version.

I can (and will) update the version that is being downloaded in the CI setup. I also might spend some time making sure those print messages are actually shown to the CI output like some of the other tests have.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephsnyder Feel free to re-request a review once the print messages show up. Thanks for updating the CI.

@josephsnyder josephsnyder force-pushed the pass_attribute_comments branch from dd27e63 to 1e8df3d Compare January 28, 2021 13:27
@EricCousineau-TRI
Copy link
Contributor

May resolve #122

@josephsnyder josephsnyder force-pushed the pass_attribute_comments branch 2 times, most recently from e66f15c to 79d2b9a Compare February 1, 2021 16:35
Fix copy/paste copyright header to only be for the year 2021
Fix variable names in the text checking function.
Use the latest version of CastXML for testing too.
@josephsnyder josephsnyder force-pushed the pass_attribute_comments branch from 79d2b9a to 135f8c8 Compare February 1, 2021 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants