summaryrefslogtreecommitdiff
path: root/coverage/parser.py
Commit message (Collapse)AuthorAgeFilesLines
...
* A better test for 'if not __debug__'Ned Batchelder2021-01-101-3/+1
|
* PEP 626: constant tests are kept as no-opsNed Batchelder2021-01-101-1/+6
| | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future?
* In 3.10, modules always have firstlineno==1Ned Batchelder2021-01-101-1/+9
|
* Use co_lines() if it's availableNed Batchelder2021-01-101-27/+28
|
* Use set literalsNed Batchelder2021-01-031-9/+9
|
* Thanks, Kjell BradenNed Batchelder2020-03-261-1/+0
|
* handle decorators for AsyncFunctionDefs. Closes #964Kjell Braden2020-03-241-0/+2
|
* Exit arcs have to be corrected to first linesNed Batchelder2019-09-211-1/+5
| | | | | | | | | | We've long remapped line numbers to the first line of a multi-line statement. But exit line numbers (negative numbers) were not remapped. This meant we were needlessly chasing weirdnesses in implementations. But the actual results of running coverage always remapped results to the first line, so there's no point in tracking the unmapped line numbers in our tests.
* No need for format indexes (mostly)Ned Batchelder2019-09-011-19/+19
|
* This class was simpler as a functionNed Batchelder2019-06-171-3/+2
|
* Move more PYVERSION to be PYBEHAVIORNed Batchelder2019-03-241-1/+1
|
* Python 3.8 will optimize away "while True:"Ned Batchelder2018-11-111-0/+21
|
* Debug-time environment variables can be set with set_env.pyNed Batchelder2018-11-031-0/+2
|
* Adapt to 3.8's way of tracing decorated functionsNed Batchelder2018-11-031-7/+24
|
* Finally jumps back to exiting linesNed Batchelder2018-10-061-9/+38
| | | | | | In Python 3.8, when a finally clause is run because a line in the try block is exiting the block, the exiting line is visited again after the finally block.
* Python 3.8 uses Constant nodes in the ASTNed Batchelder2018-10-041-1/+1
|
* Python 3.6 changed lnotab to signed bytesNed Batchelder2018-10-041-0/+2
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Properly handle empty decorated functions in 3.7. #640Ned Batchelder2018-02-091-6/+7
|
* Update to pylint 1.7.1Ned Batchelder2017-04-221-1/+0
|
* One more tweak to StopEverythingNed Batchelder2017-01-211-2/+2
|
* More-precise no-coverage pragmasNed Batchelder2017-01-191-1/+1
|
* A few more lines coveredNed Batchelder2017-01-171-1/+1
|
* Properly handle if-statements optimized away. #522Ned Batchelder2017-01-161-9/+95
|
* Slight AST_DUMP improvementsNed Batchelder2017-01-161-3/+3
|
* Reporting doesn't work on Jython, so don't run reporting tests there.Ned Batchelder2017-01-141-4/+4
| | | | | --HG-- extra : amend_source : 144fd0ffb49fdef1139ae3f0085831ece14de43f
* 2.6 and 2.7 are not different wrt constants in while loopsNed Batchelder2016-12-241-2/+1
|
* Move the test program into the testNed Batchelder2016-12-241-1/+1
|
* also use AST for while constants in python-2.7 #502loic@dachary.org2016-12-151-5/+6
| | | | | | | | | | | The node.id is set to False, True or None is python-2.7: there is no reason to only check for it with python-3. It is more reliable than using the DEFAULT_PARTIAL_ALWAYS regexps on source lines. close #502 --HG-- branch : issue-502-7
* Fix #496, while-true loop with a continue.Ned Batchelder2016-12-181-1/+1
|
* More parser code clean-upNed Batchelder2016-12-181-14/+25
|
* Clean up #493 fixNed Batchelder2016-12-181-0/+2
|
* Merged in dachary/coverage.py/issue-493-2 (pull request #108)Ned Batchelder2016-12-181-5/+7
|\ | | | | | | finally happens before return in a try #493
| * finally happens before return in a try #493loic@dachary.org2016-12-181-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a try block such as: if expr: try: return finally print pass the print happens before the return and cannot be followed by pass. The general case is that when the body/else/handlers in a try block all have return, break etc., the code behind finally: has no arc to the statement following the try block. close #493 --HG-- branch : issue-493-2
* | More ast parsing clean-up.Ned Batchelder2016-12-181-8/+19
| |
* | More doc and cleanup of ast parsingNed Batchelder2016-12-181-6/+29
| |
* | Add some to the ArcStart docstring, and remove defaultable argumentsNed Batchelder2016-12-181-5/+9
|/
* Conditionalize the ast_dump codeNed Batchelder2016-11-221-55/+60
|
* Downgrading these from TODONed Batchelder2016-10-221-6/+6
|
* Update pylint to 1.5.6Ned Batchelder2016-06-251-0/+1
|
* Better descriptions of missing one-line executables. Part of #475Ned Batchelder2016-03-271-6/+22
|
* Entry arcs now use the negative first line of the code object instead of -1.Ned Batchelder2016-03-021-6/+6
|
* Better branch-missed messages for lambdas.Ned Batchelder2016-02-251-2/+5
|
* Pick off some lintNed Batchelder2016-02-151-7/+15
|
* Add missing branch explanations for while-loopNed Batchelder2016-02-151-4/+6
|
* Clean up new helperNed Batchelder2016-02-151-6/+11
|
* Combine add_arc and add_missing_fragmentsNed Batchelder2016-02-151-39/+19
|
* More missing-branch descriptionsNed Batchelder2016-02-151-11/+19
|
* Make the arc and fragment collection easier to traceNed Batchelder2016-02-141-63/+45
|
* More work on better missing branch descriptionsNed Batchelder2016-02-141-29/+67
|