question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CoverageSqliteData.filename gets mutated with suffix

See original GitHub issue

While CoverageJsonData.filename will be kept as the initial basename, CoverageSqliteData.filename gets mutated with the suffix appended.

This is relevant for when using combine() on an already used Coverage object, where the suffix is included in the glob pattern then already when looking for files to combine.

This appears to be (one of) the reason(s) for pytest-cov to have a separate Coverage object for this (https://github.com/pytest-dev/pytest-cov/blob/7205428bfb9ab9f8dbcaeefe23ce5fe426bb06b9/src/pytest_cov/engine.py#L152-L155).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nedbatcommented, Apr 15, 2019

This is fixed in fdaf0356

0reactions
nedbatcommented, Sep 24, 2018

I added a failing test to show the problem. It passes with the JSON storage, and fails with SQLite. I’m not entirely convinced this is an important case to keep working, but it shouldn’t be hard to fix either.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How SQLite Is Tested
Dbsqlfuzz mutates both the SQL and the database file at the same time, and is thus able to reach new error states. Dbsqlfuzz...
Read more >
libFuzzer – a library for coverage-guided fuzz testing. - LLVM
LibFuzzer is linked with the library under test, and feeds fuzzed inputs to the library via a specific fuzzing entrypoint (aka “target function”);...
Read more >
Opening database file from within SQLite command-line shell
You can attach one and even more databases and work with it in the same way like using sqlite dbname.db sqlite3 : sqlite>...
Read more >
Variant Effect Predictor Plugins - VEP command line - Ensembl
Plugin Category Developer AncestralAllele Conservation Ensembl CADD. Combined Annotation Dependent Depletion Pathogenicity predictions Ensembl CAPICE Pathogenicity predictions Ensembl
Read more >
Data Management With Python, SQLite, and SQLAlchemy
Flat files for data storage; SQL to improve access to persistent data; SQLite for data storage; SQLAlchemy to work with data as Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found