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

Undocumented interfaces #2

Open
nedbat opened this issue Dec 15, 2019 · 1 comment
Open

Undocumented interfaces #2

nedbat opened this issue Dec 15, 2019 · 1 comment

Comments

@nedbat
Copy link

nedbat commented Dec 15, 2019

What would coverage.py need to add to its documented interfaces so that you wouldn't need to use _analyze? https://github.com/kalekseev/vim-coverage.py/blob/master/rplugin/python3/vim_coveragepy/util.py#L163

@kalekseev
Copy link
Owner

Hi @nedbat, first of all thank you very much for coverage!

What would coverage.py need to add to its documented interfaces so that you wouldn't need to use _analyze?

I need branch information and analysis2 doesn't provide it neither any other method in public API (maybe it can be computed from data.arcs()?). I found that html report module gets that information directly from Analyze object instead of using analysis2 results, so I used the same technique.

I think the rule for what should go to public API can be "anything that used by included report modules".

Let me know if I should create an issue for that in coverage.py repo.

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

No branches or pull requests

2 participants