summaryrefslogtreecommitdiff
path: root/coverage/sqldata.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix two pylint warningsNed Batchelder2019-06-111-2/+3
|
* Make --contexts available for HTML reportsNed Batchelder2019-06-101-12/+21
|
* Tricky case: Thread switching is getting in the way.Stephan Richter2019-06-101-1/+6
|
* Add ability to report contexts for all lines of a file.Stephan Richter2019-06-101-0/+34
|
* Sigh, sqlite3 does not support proper array serialization.Stephan Richter2019-06-101-8/+10
|
* Initialize attributes.Stephan Richter2019-06-101-0/+2
|
* Support for multiple, glob-based contexts in result queries.Stephan Richter2019-06-101-8/+33
|
* Don't name new method the same as old attributeNed Batchelder2019-04-201-1/+1
|
* Fix #708: .filename is private, and don't combine over ourselvesNed Batchelder2019-04-151-13/+21
|
* Oops, clean up some unused listcompsNed Batchelder2019-04-091-7/+6
|
* A little clean-up from pr #760Ned Batchelder2019-04-091-9/+2
|
* Merge pull request #723 from blueyed/fix-702Ned Batchelder2019-04-081-2/+2
|\ | | | | CoverageSqliteData._file_id: use "insert or replace"
| * CoverageSqliteData._file_id: fall back to SELECTDaniel Hahler2019-03-311-2/+2
| | | | | | | | Fixes https://github.com/nedbat/coveragepy/issues/702
* | Merge pull request #760 from Shoobx/fix-coverage-with-threadsNed Batchelder2019-04-081-17/+25
|\ \ | | | | | | Ensure sqldata thread safety.
| * | Make thread code Py2 compatible.Stephan Richter2019-01-261-8/+14
| | |
| * | Use one conenction per thread to avoid tricky race conditions. (The ref ↵Stephan Richter2019-01-251-17/+19
| | | | | | | | | | | | counter is simply not good enough.)
* | | Fix formatting, and credit StephanNed Batchelder2019-04-071-31/+37
| | |
* | | Merge pull request #765 from Shoobx/fast-sqldata-updateNed Batchelder2019-04-071-45/+122
|\ \ \ | |_|/ |/| | Fast CoverageSqliteData Update/Combine
| * | Some cleanup (left from first versions) and localized file path lookup which ↵Stephan Richter2019-01-271-18/+11
| | | | | | | | | | | | takes off another 20%.
| * | Use efficient database queries to combine data. This algorithm is 25-30x ↵Stephan Richter2019-01-261-45/+129
| |/ | | | | | | | | | | faster than the original one. Given that context-included coverage has about 50x the data of the old format (on our code base), this means that combining is now only 2-3x slower than before.
* | Make sure that arcs() and lines() only returns distinct line combination ↵Stephan Richter2019-02-171-2/+2
|/ | | | values and not one entry for each context.
* Use one transaction to speed combiningNed Batchelder2018-10-151-39/+45
|
* Defer using the database when calling set_context #716Ned Batchelder2018-10-141-11/+14
| | | | | | | | | | | The collector calls set_context() before any code is run. If we touch the database there, it will get created *very* early. This causes problems with pytest-cov, which will delete those early-created files when erasing data. By deferring the database access until add_lines is called, the data file stays off the disk until the collection is done (or until the context switches), which avoids the problem.
* Fewer conditionals for debug outputNed Batchelder2018-10-131-11/+11
|
* Debugging improvementsNed Batchelder2018-10-131-2/+2
|
* Record the sys.argv in the dbNed Batchelder2018-09-281-3/+5
|
* Faster combiningNed Batchelder2018-09-271-7/+13
|
* CoverageSqliteData.__nonzero__: do not create DBDaniel Hahler2018-09-241-0/+2
| | | | This makes is more lazy and avoids creating an empty DB unnecessarily.
* Dynamic contextsNed Batchelder2018-09-231-0/+2
|
* Merge branch 'nedbat/contexts'Ned Batchelder2018-09-211-28/+101
|\
| * More debugging.Ned Batchelder2018-09-211-0/+10
| |
| * Combining contexts worksNed Batchelder2018-09-211-22/+52
| |
| * measured_contexts() and two simple tests of the global contextNed Batchelder2018-09-211-11/+16
| |
| * Change measured_files to a setNed Batchelder2018-09-211-3/+3
| |
| * Set the context in the dataNed Batchelder2018-09-211-1/+1
| |
| * SqlData can set_contextNed Batchelder2018-09-181-0/+14
| |
| * Super-simple contexts added to the schemaNed Batchelder2018-09-181-7/+21
| |
* | SimpleReprMixin is a better nameNed Batchelder2018-09-091-3/+3
|/
* SQLite on py2 doesn't like opening files with non-ascii chars in the pathNed Batchelder2018-09-021-1/+5
|
* Don't keep the sqlite db open for longNed Batchelder2018-09-021-9/+19
|
* SQLite storage detects forksNed Batchelder2018-08-271-5/+16
|
* Tests of the schema checkingNed Batchelder2018-08-261-3/+3
|
* Check the schema version, no more app_idNed Batchelder2018-08-261-19/+17
|
* PyPy needs to close cursors from pragmasNed Batchelder2018-08-241-2/+5
|
* A better more accurate bool(data)Ned Batchelder2018-08-241-4/+1
|
* Get file_tracer semantics right, whewNed Batchelder2018-08-241-28/+51
|
* Be flexible, and accept either json-sourced or sql-source error messages in ↵Ned Batchelder2018-08-241-1/+4
| | | | some tests
* Skip some tests for SQL for nowNed Batchelder2018-08-241-0/+3
|
* Use pid-random suffixes for SQL filesNed Batchelder2018-08-141-0/+4
|
* Move the suffix parameter, but no implementation yetNed Batchelder2018-08-141-2/+2
|