{
    "content": [
        {
            "type": "text",
            "text": "# App::Prove::State (perldoc)\n\n**Summary:** App::Prove::State - State storage for the \"prove\" command.\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) — 2 subsections\n  - Class Methods (29 lines)\n  - Instance Methods (53 lines)\n\n## Full Content\n\n### NAME\n\nApp::Prove::State - State storage for the \"prove\" command.\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 implements that state and the operations that may be performed on it.\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\"\nAccepts a hashref with the following key/value pairs:\n\n*   \"store\"\n\nThe filename of the data store holding the data that App::Prove::State reads.\n\n*   \"extensions\" (optional)\n\nThe test name extensions. Defaults to \".t\".\n\n*   \"resultclass\" (optional)\n\nThe name of the \"resultclass\". Defaults to \"App::Prove::State::Result\".\n\n\"resultclass\"\nGetter/setter for the name of the class used for tracking test results. This class should either\nsubclass from \"App::Prove::State::Result\" or provide an identical interface.\n\n\"extensions\"\nGet or set the list of extensions that files must have in order to be considered tests. Defaults\nto ['.t'].\n\n\"results\"\nGet the results of the last test run. Returns a \"resultclass()\" instance.\n\n\"commit\"\nSave the test results. Should be called after all tests have run.\n\n#### Instance Methods\n\n\"applyswitch\"\n$self->applyswitch('failed,save');\n\nApply a list of switch options to the state, updating the internal object state as a result.\nNothing is returned.\n\nDiagnostics: - \"Illegal state option: %s\"\n\n\"last\"\nRun in the same order as last time\n\n\"failed\"\nRun only the failed tests from last time\n\n\"passed\"\nRun only the passed tests from last time\n\n\"all\"\nRun all tests in normal order\n\n\"hot\"\nRun the tests that most recently failed first\n\n\"todo\"\nRun the tests ordered by number of todos.\n\n\"slow\"\nRun the tests in slowest to fastest order.\n\n\"fast\"\nRun test tests in fastest to slowest order.\n\n\"new\"\nRun the tests in newest to oldest order.\n\n\"old\"\nRun the tests in oldest to newest order.\n\n\"save\"\nSave the state on exit.\n\n\"gettests\"\nGiven a list of args get the names of tests that should run\n\n\"observetest\"\nStore the results of a test.\n\n\"save\"\nWrite the state to a file.\n\n\"load\"\nLoad the state from a file\n\n"
        }
    ],
    "structuredContent": {
        "command": "App::Prove::State",
        "section": "",
        "mode": "perldoc",
        "summary": "App::Prove::State - State storage for the \"prove\" command.",
        "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": 29
                    },
                    {
                        "name": "Instance Methods",
                        "lines": 53
                    }
                ]
            }
        ],
        "sections": {
            "NAME": {
                "content": "App::Prove::State - State storage for the \"prove\" command.\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 implements that state and the operations that may be performed on it.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# Re-run failed tests\n$ prove --state=failed,save -rbv\n",
                "subsections": []
            },
            "METHODS": {
                "content": "",
                "subsections": [
                    {
                        "name": "Class Methods",
                        "content": "\"new\"\nAccepts a hashref with the following key/value pairs:\n\n*   \"store\"\n\nThe filename of the data store holding the data that App::Prove::State reads.\n\n*   \"extensions\" (optional)\n\nThe test name extensions. Defaults to \".t\".\n\n*   \"resultclass\" (optional)\n\nThe name of the \"resultclass\". Defaults to \"App::Prove::State::Result\".\n\n\"resultclass\"\nGetter/setter for the name of the class used for tracking test results. This class should either\nsubclass from \"App::Prove::State::Result\" or provide an identical interface.\n\n\"extensions\"\nGet or set the list of extensions that files must have in order to be considered tests. Defaults\nto ['.t'].\n\n\"results\"\nGet the results of the last test run. Returns a \"resultclass()\" instance.\n\n\"commit\"\nSave the test results. Should be called after all tests have run.\n"
                    },
                    {
                        "name": "Instance Methods",
                        "content": "\"applyswitch\"\n$self->applyswitch('failed,save');\n\nApply a list of switch options to the state, updating the internal object state as a result.\nNothing is returned.\n\nDiagnostics: - \"Illegal state option: %s\"\n\n\"last\"\nRun in the same order as last time\n\n\"failed\"\nRun only the failed tests from last time\n\n\"passed\"\nRun only the passed tests from last time\n\n\"all\"\nRun all tests in normal order\n\n\"hot\"\nRun the tests that most recently failed first\n\n\"todo\"\nRun the tests ordered by number of todos.\n\n\"slow\"\nRun the tests in slowest to fastest order.\n\n\"fast\"\nRun test tests in fastest to slowest order.\n\n\"new\"\nRun the tests in newest to oldest order.\n\n\"old\"\nRun the tests in oldest to newest order.\n\n\"save\"\nSave the state on exit.\n\n\"gettests\"\nGiven a list of args get the names of tests that should run\n\n\"observetest\"\nStore the results of a test.\n\n\"save\"\nWrite the state to a file.\n\n\"load\"\nLoad the state from a file\n"
                    }
                ]
            }
        }
    }
}