-
Notifications
You must be signed in to change notification settings - Fork 20
Make TestCoverage properly typed and self-documenting
#1887
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
base: 0.5.x
Are you sure you want to change the base?
Conversation
b80db01 to
83fe87c
Compare
|
|
||
|
|
||
| @lru_cache | ||
| def get_coveragerc_ignore_modules() -> Sequence[Path]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this return importable strings
| pass | ||
|
|
||
|
|
||
| class Method(Testable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about properties?
| ) | ||
|
|
||
|
|
||
| class MissingReason(Enum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the APIs to test_utils?
ef29fa7 to
4d5f64c
Compare
| continue | ||
|
|
||
| yield imported_member | ||
| class Class(HasChildren[Method]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this add its own testable members
|
|
||
|
|
||
| class _ModuleFunctionCoverageTester: | ||
| class Module(HasChildren[Union["Module", Class, Function]]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this add its own testable members
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an internal method add_undefined_children()?
e4fa977 to
d59411a
Compare
To do