{"id":19648555,"url":"https://github.com/bestpractical/plack-middleware-test-stashwarnings","last_synced_at":"2026-04-14T07:33:20.035Z","repository":{"id":1104829,"uuid":"970200","full_name":"bestpractical/plack-middleware-test-stashwarnings","owner":"bestpractical","description":null,"archived":false,"fork":false,"pushed_at":"2014-05-16T23:31:01.000Z","size":180,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T00:45:46.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/Plack-Middleware-Test-StashWarnings","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bestpractical.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-07T19:02:22.000Z","updated_at":"2019-08-13T14:37:23.000Z","dependencies_parsed_at":"2022-08-16T12:00:50.759Z","dependency_job_id":null,"html_url":"https://github.com/bestpractical/plack-middleware-test-stashwarnings","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bestpractical/plack-middleware-test-stashwarnings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fplack-middleware-test-stashwarnings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fplack-middleware-test-stashwarnings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fplack-middleware-test-stashwarnings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fplack-middleware-test-stashwarnings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bestpractical","download_url":"https://codeload.github.com/bestpractical/plack-middleware-test-stashwarnings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fplack-middleware-test-stashwarnings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31786932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T14:48:55.930Z","updated_at":"2026-04-14T07:33:20.020Z","avatar_url":"https://github.com/bestpractical.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Plack::Middleware::Test::StashWarnings - Test your application's\n    warnings\n\nSYNOPSIS\n      # for your PSGI application:\n      enable \"Test::StashWarnings\";\n\n\n      # for your Test::WWW::Mechanize subclass:\n      use Storable 'thaw';\n      sub get_warnings {\n          local $Test::Builder::Level = $Test::Builder::Level + 1;\n          my $self = shift;\n  \n          my $clone = $self-\u003eclone;\n          return unless $clone-\u003eget_ok('/__test_warnings');\n  \n          my @warnings = @{ thaw $clone-\u003econtent };\n          return @warnings;\n      }\n\nDESCRIPTION\n    Plack::Middleware::Test::StashWarnings is a Plack middleware component\n    to record warnings generated by your application so that you can test\n    them to make sure your application complains about the right things.\n\n    The warnings generated by your application are available at a special\n    URL (\"/__test_warnings\"), encoded with \"nfreeze\" in Storable. So using\n    Test::WWW::Mechanize you can just \"get\" that URL and \"thaw\" in Storable\n    its content.\n\nARGUMENTS\n    Plack::Middleware::Test::StashWarnings takes one optional argument,\n    \"verbose\", which defaults to $ENV{TEST_VERBOSE}. If set to true, it will\n    bubble warnings up to any pre-existing \"__WARN__\" handler. Turning this\n    explicitly off may be useful if your tests load Test::NoWarnings and\n    also use Test::WWW::Mechanize::PSGI for non-forking testing -- failure\n    to do so would result in test failures even for caught warnings.\n\nRATIONALE\n    Warnings are an important part of any application. Your web application\n    should warn its operators when something is amiss.\n\n    Almost as importantly, your web application should gracefully cope with\n    bad input, the back button, and all other aspects of the user\n    experience.\n\n    Unfortunately, tests seldom cover what happens when things go poorly.\n    Are you *sure* that your application correctly denies that action and\n    logs the failure? Are you *sure* it will tomorrow?\n\n    This module lets you retrieve the warnings that your forked server\n    issues. That way you can test that your application continues to issue\n    warnings when it makes sense. Catching the warnings also keeps your test\n    output tidy. Finally, you'll be able to see (and be notified via failing\n    tests) when your application issues new, unexpected warnings so you can\n    fix them immediately.\n\nAUTHOR\n    Shawn M Moore \"sartak@bestpractical.com\"\n\n    Tatsuhiko Miyagawa wrote Plack::Middleware::Test::Recorder which served\n    as a model for this module.\n\nLICENSE\n    This library is free software; you can redistribute it and/or modify it\n    under the same terms as Perl itself.\n\nSEE ALSO\n    Test::HTTP::Server::Simple::StashWarnings\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Fplack-middleware-test-stashwarnings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbestpractical%2Fplack-middleware-test-stashwarnings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Fplack-middleware-test-stashwarnings/lists"}