Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix C coverage support for sphinx.ext.coverage #11591

Merged
merged 4 commits into from
Aug 15, 2023

Commits on Aug 15, 2023

  1. Fix typo

    Signed-off-by: Stephen Finucane <stephen@that.guru>
    stephenfin committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    888950b View commit details
    Browse the repository at this point in the history
  2. sphinx.ext.coverage: Fix coverage for C APIs

    We were using the 'objects' attribute of the C domain to pull all C
    objects that we were aware of. However, this is never set to any value
    nor does it ever appear to have been. Instead, we should have been using
    and parsing the return value from 'get_objects'.
    
    As an aside, this would suggest code coverage for C APIs has never
    worked or at least has not worked for a *very* long time. This explains
    why every GitHub hit for the various configuration options comes from
    Sphinx (for the implementation), Python (for the sole user), or a fork
    of these.
    
    Signed-off-by: Stephen Finucane <stephen@that.guru>
    stephenfin committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    6c233a6 View commit details
    Browse the repository at this point in the history
  3. Update tests for sphinx.ext.coverage

    Prevent regressions but including a positive test alongside the negative
    test. We could probably make this more thorough and improve the C source
    so that it shows examples of other types of C object, but that's a task
    left for another day/PR.
    
    Signed-off-by: Stephen Finucane <stephen@that.guru>
    stephenfin committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    f8f028d View commit details
    Browse the repository at this point in the history
  4. Add changelog for sphinx-doc#11590 fix

    Signed-off-by: Stephen Finucane <stephen@that.guru>
    stephenfin committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    ba04cfb View commit details
    Browse the repository at this point in the history