{
    "content": [
        {
            "type": "text",
            "text": "# App::Prove::State::Result (perldoc)\n\n**Summary:** App::Prove::State::Result - Individual test suite results.\n\n**Synopsis:** # Re-run failed tests\n$ prove --state=failed,save -rbv\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **VERSION** (2 lines)\n- **DESCRIPTION** (3 lines)\n- **SYNOPSIS** (3 lines)\n- **METHODS** (1 lines) — 1 subsections\n  - Class Methods (61 lines)\n\n## Full Content\n\n### NAME\n\nApp::Prove::State::Result - Individual test suite results.\n\n### VERSION\n\nVersion 3.43\n\n### DESCRIPTION\n\nThe \"prove\" command supports a \"--state\" option that instructs it to store persistent state\nacross runs. This module encapsulates the results for a single test suite run.\n\n### SYNOPSIS\n\n# Re-run failed tests\n$ prove --state=failed,save -rbv\n\n### METHODS\n\n#### Class Methods\n\n\"new\"\nmy $result = App::Prove::State::Result->new({\ngeneration => $generation,\ntests      => \\%tests,\n});\n\nReturns a new \"App::Prove::State::Result\" instance.\n\n\"stateversion\"\nReturns the current version of state storage.\n\n\"testclass\"\nReturns the name of the class used for tracking individual tests. This class should either\nsubclass from \"App::Prove::State::Result::Test\" or provide an identical interface.\n\n\"generation\"\nGetter/setter for the \"generation\" of the test suite run. The first generation is 1 (one) and\nsubsequent generations are 2, 3, etc.\n\n\"lastruntime\"\nGetter/setter for the time of the test suite run.\n\n\"tests\"\nReturns the tests for a given generation. This is a hashref or a hash, depending on context\ncalled. The keys to the hash are the individual test names and the value is a hashref with\nvarious interesting values. Each k/v pair might resemble something like this:\n\n't/foo.t' => {\nelapsed        => '0.0428488254547119',\ngen            => '7',\nlastpasstime => '1219328376.07815',\nlastresult    => '0',\nlastruntime  => '1219328376.07815',\nlasttodo      => '0',\nmtime          => '1191708862',\nseq            => '192',\ntotalpasses   => '6',\n}\n\n\"test\"\nmy $test = $result->test('t/customer/create.t');\n\nReturns an individual \"App::Prove::State::Result::Test\" instance for the given test name\n(usually the filename). Will return a new \"App::Prove::State::Result::Test\" instance if the name\nis not found.\n\n\"testnames\"\nReturns an list of test names, sorted by run order.\n\n\"remove\"\n$result->remove($testname);            # remove the test\nmy $test = $result->test($testname);   # fatal error\n\nRemoves a given test from results. This is a no-op if the test name is not found.\n\n\"numtests\"\nReturns the number of tests for a given test suite result.\n\n\"raw\"\nReturns a hashref of raw results, suitable for serialization by YAML.\n\n"
        }
    ],
    "structuredContent": {
        "command": "App::Prove::State::Result",
        "section": "",
        "mode": "perldoc",
        "summary": "App::Prove::State::Result - Individual test suite results.",
        "synopsis": "# Re-run failed tests\n$ prove --state=failed,save -rbv",
        "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": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Class Methods",
                        "lines": 61
                    }
                ]
            }
        ],
        "sections": {
            "NAME": {
                "content": "App::Prove::State::Result - Individual test suite results.\n",
                "subsections": []
            },
            "VERSION": {
                "content": "Version 3.43\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The \"prove\" command supports a \"--state\" option that instructs it to store persistent state\nacross runs. This module encapsulates the results for a single test suite run.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# Re-run failed tests\n$ prove --state=failed,save -rbv\n",
                "subsections": []
            },
            "METHODS": {
                "content": "",
                "subsections": [
                    {
                        "name": "Class Methods",
                        "content": "\"new\"\nmy $result = App::Prove::State::Result->new({\ngeneration => $generation,\ntests      => \\%tests,\n});\n\nReturns a new \"App::Prove::State::Result\" instance.\n\n\"stateversion\"\nReturns the current version of state storage.\n\n\"testclass\"\nReturns the name of the class used for tracking individual tests. This class should either\nsubclass from \"App::Prove::State::Result::Test\" or provide an identical interface.\n\n\"generation\"\nGetter/setter for the \"generation\" of the test suite run. The first generation is 1 (one) and\nsubsequent generations are 2, 3, etc.\n\n\"lastruntime\"\nGetter/setter for the time of the test suite run.\n\n\"tests\"\nReturns the tests for a given generation. This is a hashref or a hash, depending on context\ncalled. The keys to the hash are the individual test names and the value is a hashref with\nvarious interesting values. Each k/v pair might resemble something like this:\n\n't/foo.t' => {\nelapsed        => '0.0428488254547119',\ngen            => '7',\nlastpasstime => '1219328376.07815',\nlastresult    => '0',\nlastruntime  => '1219328376.07815',\nlasttodo      => '0',\nmtime          => '1191708862',\nseq            => '192',\ntotalpasses   => '6',\n}\n\n\"test\"\nmy $test = $result->test('t/customer/create.t');\n\nReturns an individual \"App::Prove::State::Result::Test\" instance for the given test name\n(usually the filename). Will return a new \"App::Prove::State::Result::Test\" instance if the name\nis not found.\n\n\"testnames\"\nReturns an list of test names, sorted by run order.\n\n\"remove\"\n$result->remove($testname);            # remove the test\nmy $test = $result->test($testname);   # fatal error\n\nRemoves a given test from results. This is a no-op if the test name is not found.\n\n\"numtests\"\nReturns the number of tests for a given test suite result.\n\n\"raw\"\nReturns a hashref of raw results, suitable for serialization by YAML.\n"
                    }
                ]
            }
        }
    }
}