Devel::CoverX::Covered::Db - Covered database collection and reporting
Failures will result in a die.
The directory for the cover_db.
DBIx::Simple $db object. Created lazily under "dir".
Subref called for each $file processed, $report_file->($file).
Regex matching test files to skip.
Default: matches prove and prove.bat
Array ref with Regexes matching source files to skip.
Default: []
Connect to the covered db and return the new DBIx::Simple object.
If there is no db at all, create it first.
Create $db_file with the correct schema.
Return newly created DBIx::Simple $db object.
Return a version number of the schema.
Update this manually whenever the schema changes.
Run $subref->() in a transaction and return the return value of $subref in scalar context.
If anything dies inside $subref, roll back and rethrow exception.
Collect coverage statistics for test runs in "dir".
Return list of directories for test runs under the "dir".
Collect coverage statistics for the test run Devel::Cover::DB $cover_db.
Don't collect coverage for eval (-e), nor for any test file matching rex_skip_calling_file.
Return 1 if the test run was collected, else 0.
Extract the $calling_file_name from $cover_db and return it.
Return "" if it's not a suitable calling file, or the callinging file is on the skip list. Warn with specifics.
Return 1 if $file_name is a valid calling file name, else 0.
It may be invalid because of unsuitability, or because it was skipped.
Return 1 if $file_name is a valid source file name, else 0.
Clear out the stored data related to $calling_file_name.
Report the coverage metric defined by the parameters.
Make all file paths relative to "dir" if possible.
Return the db id of the table "file" row for $file_name. Create a new row if missing.
Memoized.
Return the new or existing $file_id.
Return the db id of the table "metric_type" row for $metric_type. Create a new row if missing.
Return the new or existing $metric_type_id.
Return the db id in $id_column_name of the $table_name row for $lookup_table_value.
Create a new row if missing.
Return the new or existing $lookup_table_id.
Return list of test files that cover any line in $source_file_name. Or if $sub is passed, limit to test files covering that sub.
Return list of test files in the db.
Return list of source files that are covered by $test_file_name.
Return list of source files in the db.
Return list of array refs [ $sub_name, $coverate_count ] with the subs in $source_file_name, and the accumulated coverage count for any test files covering it.
Return $file relative to cover_db/.. if possible, otherwise just return $file.
To install Devel::CoverX::Covered, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::CoverX::Covered
CPAN shell
perl -MCPAN -e shell install Devel::CoverX::Covered
For more information on module installation, please visit the detailed CPAN module installation guide.