Role::Declare::Should - skip some checks when not testing
This module is a drop-in replacement for Role::Declare which will additionally disable argument count and type checks when not running in a test environment, as determined by Devel::StrictMode.
If STRICT is enabled, using Role::Declare::Should is functionally identical to Role::Declare (any import arguments are passed on).
If STRICT is not enabled, it's equivalent to:
use Role::Declare -lax, -no_type_check;
Szymon Nieznański <firstname.lastname@example.org>
'Role::Declare' is Copyright (C) 2020, Perceptyx Inc
This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This package is distributed in the hope that it will be useful, but it is provided "as is" and without any express or implied warranties.
For details, see the full text of the license in the file LICENSE.
To install Role::Declare, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.