{
    "content": [
        {
            "type": "text",
            "text": "# Devel::Cover::DB (perldoc)\n\n## NAME\n\nDevel::Cover::DB - Code coverage metrics for Perl\n\n## SYNOPSIS\n\nuse Devel::Cover::DB;\nmy $db = Devel::Cover::DB->new(db => \"mycoveragedb\");\n$db->printsummary([$file1, $file2], [\"statement\", \"pod\"]);\n\n## DESCRIPTION\n\nThis module provides access to a database of code coverage information.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n- **BUGS**\n- **LICENCE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Devel::Cover::DB",
        "section": "",
        "mode": "perldoc",
        "summary": "Devel::Cover::DB - Code coverage metrics for Perl",
        "synopsis": "use Devel::Cover::DB;\nmy $db = Devel::Cover::DB->new(db => \"mycoveragedb\");\n$db->printsummary([$file1, $file2], [\"statement\", \"pod\"]);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 48,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "LICENCE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Devel::Cover::DB - Code coverage metrics for Perl\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 1.36\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Devel::Cover::DB;\n\nmy $db = Devel::Cover::DB->new(db => \"mycoveragedb\");\n$db->printsummary([$file1, $file2], [\"statement\", \"pod\"]);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides access to a database of code coverage information.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new\nmy $db = Devel::Cover::DB->new(db => \"mycoveragedb\");\n\nConstructs the DB from the specified database.\n\ncover\nmy $cover = $db->cover;\n\nReturns a Devel::Cover::DB::Cover object. From here all the coverage data may be accessed.\n\nmy $cover = $db->cover;\nfor my $file ($cover->items) {\nprint \"$file\\n\";\nmy $f = $cover->file($file);\nfor my $criterion ($f->items) {\nprint \"  $criterion\\n\";\nmy $c = $f->criterion($criterion);\nfor my $location ($c->items) {\nmy $l = $c->location($location);\nprint \"    $location @$l\\n\";\n}\n}\n}\n\nData for different criteria will be in different formats, so that will need special handling.\nThis is not yet documented so your best bet for now is to look at some of the simpler reports\nand/or the source.\n\nThe methods in the above example are actually aliases for methods in Devel::Cover::DB::Base (the\nbase class for all Devel::Cover::DB::* classes):\n\n*   Devel::Cover::DB::Base->values\n\nAliased to Devel::Cover::DB::Cover->files, Devel::Cover::DB::File->criteria,\nDevel::Cover::DB::Criterion->locations, and Devel::Cover::DB::Location->data\n\n*   Devel::Cover::DB::Base->get\n\nAliased to Devel::Cover::DB::Cover->file, Devel::Cover::DB::File->criterion,\nDevel::Cover::DB::Criterion->location, and Devel::Cover::DB::Location->datum\n\nInstead of calling $file->criterion(\"x\") you can also call $file->x.\n\nisvalid\nmy $valid = $db->isvalid;\n\nReturns true if $db is valid (or looks valid, the function is too lax).\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Devel::Cover\nDevel::Cover::DB::Base\nDevel::Cover::DB::Cover\nDevel::Cover::DB::File\nDevel::Cover::DB::Criterion\nDevel::Cover::DB::Location\n",
                "subsections": []
            },
            "BUGS": {
                "content": "Huh?\n",
                "subsections": []
            },
            "LICENCE": {
                "content": "Copyright 2001-2019, Paul Johnson (paul@pjcj.net)\n\nThis software is free. It is licensed under the same terms as Perl itself.\n\nThe latest version of this software should be available from my homepage: http://www.pjcj.net\n",
                "subsections": []
            }
        }
    }
}