Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 13.58.245.158
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
share /
man /
man3 /
[ HOME SHELL ]
Name
Size
Permission
Action
App::cpanminus.3pm
14.28
KB
-r--r--r--
App::cpanminus::fatscript.3pm
26.28
KB
-r--r--r--
Bundle::DBD::mysql.3pm
4.09
KB
-r--r--r--
CPAN::Meta::Requirements.3pm
13.78
KB
-r--r--r--
CPAN::Meta::YAML.3pm
5.89
KB
-r--r--r--
Canary::Stability.3pm
5.84
KB
-r--r--r--
DBD::mysql.3pm
48.68
KB
-r--r--r--
DBD::mysql::INSTALL.3pm
30.13
KB
-r--r--r--
Data::Dump.3pm
10.51
KB
-r--r--r--
Data::Dump::Filtered.3pm
10.39
KB
-r--r--r--
Data::Dump::Trace.3pm
9
KB
-r--r--r--
Data::Validate::IP.3pm
15.68
KB
-r--r--r--
Devel::CheckLib.3pm
11.45
KB
-r--r--r--
Digest::MD5.3pm
16.16
KB
-r--r--r--
Error.3pm
21.39
KB
-r--r--r--
Error::Simple.3pm
8.15
KB
-r--r--r--
Expect.3pm
60.58
KB
-r--r--r--
Exporter.3pm
22.74
KB
-r--r--r--
Exporter::Heavy.3pm
4.1
KB
-r--r--r--
File::Copy::Recursive.3pm
18.63
KB
-r--r--r--
File::LckPwdF.3pm
11.21
KB
-r--r--r--
File::Path.3pm
32.74
KB
-r--r--r--
File::ReadBackwards.3pm
10.38
KB
-r--r--r--
File::Temp.3pm
39.49
KB
-r--r--r--
HTML::TagParser.3pm
14.01
KB
-r--r--r--
HTTP::Date.3pm
9.36
KB
-r--r--r--
HTTP::Tiny.3pm
29.24
KB
-r--r--r--
IO::AtomicFile.3pm
7.02
KB
-r--r--r--
IO::InnerFile.3pm
7.66
KB
-r--r--r--
IO::Lines.3pm
5.46
KB
-r--r--r--
IO::Pty.3pm
10.14
KB
-r--r--r--
IO::Scalar.3pm
12.19
KB
-r--r--r--
IO::ScalarArray.3pm
12.04
KB
-r--r--r--
IO::Stringy.3pm
5.72
KB
-r--r--r--
IO::Tty.3pm
9.91
KB
-r--r--r--
IO::Tty::Constant.3pm
11.25
KB
-r--r--r--
IO::Wrap.3pm
12.18
KB
-r--r--r--
IO::WrapTie.3pm
16.4
KB
-r--r--r--
JSON.3pm
64.46
KB
-r--r--r--
JSON::Syck.3pm
9.67
KB
-r--r--r--
JSON::XS.3pm
88.67
KB
-r--r--r--
JSON::XS::Boolean.3pm
4.55
KB
-r--r--r--
JSON::backportPP.3pm
65.09
KB
-r--r--r--
JSON::backportPP::Boolean.3pm
4.52
KB
-r--r--r--
JSON::backportPP::Compat5005.3...
4.39
KB
-r--r--r--
JSON::backportPP::Compat5006.3...
4.39
KB
-r--r--r--
Mail::RFC822::Address.3pm
7.11
KB
-r--r--r--
Mock::Config.3pm
7.73
KB
-r--r--r--
Module::Load.3pm
11.18
KB
-r--r--r--
Module::Load::Conditional.3pm
14.24
KB
-r--r--r--
NetAddr::IP.3pm
38.15
KB
-r--r--r--
NetAddr::IP::InetBase.3pm
14.65
KB
-r--r--r--
NetAddr::IP::Lite.3pm
26.89
KB
-r--r--r--
NetAddr::IP::Util.3pm
23.49
KB
-r--r--r--
NetAddr::IP::UtilPP.3pm
11.04
KB
-r--r--r--
POD2::DE::local::lib.3pm
24.23
KB
-r--r--r--
POD2::PT_BR::local::lib.3pm
24.62
KB
-r--r--r--
Path::Tiny.3pm
52.88
KB
-r--r--r--
Storable.3pm
45.41
KB
-r--r--r--
Template::Toolkit::Simple.3pm
13.37
KB
-r--r--r--
Test2.3pm
11.13
KB
-r--r--r--
Test2::API.3pm
37.22
KB
-r--r--r--
Test2::API::Breakage.3pm
6.63
KB
-r--r--r--
Test2::API::Context.3pm
25.52
KB
-r--r--r--
Test2::API::Instance.3pm
14.72
KB
-r--r--r--
Test2::API::InterceptResult.3p...
22
KB
-r--r--r--
Test2::API::InterceptResult::E...
26.72
KB
-r--r--r--
Test2::API::InterceptResult::H...
4.64
KB
-r--r--r--
Test2::API::InterceptResult::S...
4.77
KB
-r--r--r--
Test2::API::Stack.3pm
8.18
KB
-r--r--r--
Test2::Event.3pm
22.81
KB
-r--r--r--
Test2::Event::Bail.3pm
5.15
KB
-r--r--r--
Test2::Event::Diag.3pm
5.02
KB
-r--r--r--
Test2::Event::Encoding.3pm
5.36
KB
-r--r--r--
Test2::Event::Exception.3pm
5.3
KB
-r--r--r--
Test2::Event::Fail.3pm
4.93
KB
-r--r--r--
Test2::Event::Generic.3pm
9.66
KB
-r--r--r--
Test2::Event::Note.3pm
5.01
KB
-r--r--r--
Test2::Event::Ok.3pm
5.69
KB
-r--r--r--
Test2::Event::Pass.3pm
4.93
KB
-r--r--r--
Test2::Event::Plan.3pm
5.58
KB
-r--r--r--
Test2::Event::Skip.3pm
5.34
KB
-r--r--r--
Test2::Event::Subtest.3pm
5.25
KB
-r--r--r--
Test2::Event::TAP::Version.3pm
5.18
KB
-r--r--r--
Test2::Event::V2.3pm
8.26
KB
-r--r--r--
Test2::Event::Waiting.3pm
4.8
KB
-r--r--r--
Test2::EventFacet.3pm
5.57
KB
-r--r--r--
Test2::EventFacet::About.3pm
6.37
KB
-r--r--r--
Test2::EventFacet::Amnesty.3pm
6.16
KB
-r--r--r--
Test2::EventFacet::Assert.3pm
6.41
KB
-r--r--r--
Test2::EventFacet::Control.3pm
7.4
KB
-r--r--r--
Test2::EventFacet::Error.3pm
6.26
KB
-r--r--r--
Test2::EventFacet::Hub.3pm
7.12
KB
-r--r--r--
Test2::EventFacet::Info.3pm
8.17
KB
-r--r--r--
Test2::EventFacet::Info::Table...
7.16
KB
-r--r--r--
Test2::EventFacet::Meta.3pm
5.22
KB
-r--r--r--
Test2::EventFacet::Parent.3pm
6.31
KB
-r--r--r--
Test2::EventFacet::Plan.3pm
6.67
KB
-r--r--r--
Test2::EventFacet::Render.3pm
6.84
KB
-r--r--r--
Test2::EventFacet::Trace.3pm
12.58
KB
-r--r--r--
Test2::Formatter.3pm
7.9
KB
-r--r--r--
Test2::Formatter::TAP.3pm
6.38
KB
-r--r--r--
Test2::Hub.3pm
18.36
KB
-r--r--r--
Test2::Hub::Interceptor.3pm
4.63
KB
-r--r--r--
Test2::Hub::Interceptor::Termi...
4.67
KB
-r--r--r--
Test2::Hub::Subtest.3pm
5.48
KB
-r--r--r--
Test2::IPC.3pm
5.18
KB
-r--r--r--
Test2::IPC::Driver.3pm
10.51
KB
-r--r--r--
Test2::IPC::Driver::Files.3pm
5.49
KB
-r--r--r--
Test2::Tools::Tiny.3pm
8.45
KB
-r--r--r--
Test2::Transition.3pm
19.71
KB
-r--r--r--
Test2::Util.3pm
9.42
KB
-r--r--r--
Test2::Util::ExternalMeta.3pm
7.22
KB
-r--r--r--
Test2::Util::Facets2Legacy.3pm
9.88
KB
-r--r--r--
Test2::Util::HashBase.3pm
13.91
KB
-r--r--r--
Test2::Util::Trace.3pm
4.74
KB
-r--r--r--
Test::Builder.3pm
28.79
KB
-r--r--r--
Test::Builder::Formatter.3pm
4.85
KB
-r--r--r--
Test::Builder::IO::Scalar.3pm
11.27
KB
-r--r--r--
Test::Builder::Module.3pm
7.35
KB
-r--r--r--
Test::Builder::Tester.3pm
13.04
KB
-r--r--r--
Test::Builder::Tester::Color.3...
4.82
KB
-r--r--r--
Test::Builder::TodoDiag.3pm
4.82
KB
-r--r--r--
Test::Deep.3pm
47.56
KB
-r--r--r--
Test::Deep::NoTest.3pm
4.33
KB
-r--r--r--
Test::Fatal.3pm
10.69
KB
-r--r--r--
Test::File.3pm
23.7
KB
-r--r--r--
Test::More.3pm
43.96
KB
-r--r--r--
Test::Needs.3pm
7.27
KB
-r--r--r--
Test::Requires.3pm
5.93
KB
-r--r--r--
Test::Simple.3pm
10.67
KB
-r--r--r--
Test::Tester.3pm
17.76
KB
-r--r--r--
Test::Tester::Capture.3pm
4.59
KB
-r--r--r--
Test::Tester::CaptureRunner.3p...
4.37
KB
-r--r--r--
Test::Tutorial.3pm
25.46
KB
-r--r--r--
Test::Warnings.3pm
15.7
KB
-r--r--r--
Test::use::ok.3pm
5.52
KB
-r--r--r--
Text::Aligner.3pm
9.77
KB
-r--r--r--
Text::Table.3pm
27.18
KB
-r--r--r--
Time::Local.3pm
15.63
KB
-r--r--r--
Try::Tiny.3pm
22.09
KB
-r--r--r--
URI.3pm
40.31
KB
-r--r--r--
URI::Escape.3pm
9.58
KB
-r--r--r--
URI::Heuristic.3pm
6.84
KB
-r--r--r--
URI::QueryParam.3pm
8.26
KB
-r--r--r--
URI::Split.3pm
5.73
KB
-r--r--r--
URI::URL.3pm
6.19
KB
-r--r--r--
URI::WithBase.3pm
5.91
KB
-r--r--r--
URI::_punycode.3pm
6.32
KB
-r--r--r--
URI::data.3pm
5.98
KB
-r--r--r--
URI::file.3pm
12.16
KB
-r--r--r--
URI::ldap.3pm
7.36
KB
-r--r--r--
YAML::LibYAML.3pm
4.51
KB
-r--r--r--
YAML::Syck.3pm
12.34
KB
-r--r--r--
YAML::XS.3pm
9.57
KB
-r--r--r--
YAML::XS::LibYAML.3pm
3.99
KB
-r--r--r--
lib::core::only.3pm
7.28
KB
-r--r--r--
local::lib.3pm
32.78
KB
-r--r--r--
ok.3pm
4.55
KB
-r--r--r--
version.3pm
15.37
KB
-r--r--r--
version::Internals.3pm
31.34
KB
-r--r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Test2::Transition.3pm
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Test2::Transition 3" .TH Test2::Transition 3 "2022-03-04" "perl v5.16.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Test2::Transition \- Transition notes when upgrading to Test2 .SH "DESCRIPTION" .IX Header "DESCRIPTION" This is where gotchas and breakages related to the Test2 upgrade are documented. The upgrade causes Test::Builder to defer to Test2 under the hood. This transition is mostly transparent, but there are a few cases that can trip you up. .SH "THINGS THAT BREAK" .IX Header "THINGS THAT BREAK" This is the list of scenarios that break with the new internals. .SS "Test::Builder1.5/2 conditionals" .IX Subsection "Test::Builder1.5/2 conditionals" \fIThe Problem\fR .IX Subsection "The Problem" .PP a few years back there were two attempts to upgrade/replace Test::Builder. Confusingly these were called Test::Builder2 and Test::Builder1.5, in that order. Many people put conditionals in their code to check the Test::Builder version number and adapt their code accordingly. .PP The Test::Builder2/1.5 projects both died out. Now the conditional code people added has become a mine field. A vast majority of modules broken by Test2 fall into this category. .PP \fIThe Fix\fR .IX Subsection "The Fix" .PP The fix is to remove all Test::Builder1.5/2 related code. Either use the legacy Test::Builder \s-1API,\s0 or use Test2 directly. .SS "Replacing the Test::Builder singleton" .IX Subsection "Replacing the Test::Builder singleton" \fIThe Problem\fR .IX Subsection "The Problem" .PP Some test modules would replace the Test::Builder singleton instance with their own instance or subclass. This was usually done to intercept or modify results as they happened. .PP The Test::Builder singleton is now a simple compatibility wrapper around Test2. The Test::Builder singleton is no longer the central place for results. Many results bypass the Test::Builder singleton completely, which breaks and behavior intended when replacing the singleton. .PP \fIThe Fix\fR .IX Subsection "The Fix" .PP If you simply want to intercept all results instead of letting them go to \s-1TAP,\s0 you should look at the Test2::API docs and read about pushing a new hub onto the hub stack. Replacing the hub temporarily is now the correct way to intercept results. .PP If your goal is purely monitoring of events use the \f(CW\*(C`Test2::Hub\->listen()\*(C'\fR method exported by Test::More to watch events as they are fired. If you wish to modify results before they go to \s-1TAP\s0 look at the \f(CW\*(C`Test2::Hub\->filter()\*(C'\fR method. .SS "Directly Accessing Hash Elements" .IX Subsection "Directly Accessing Hash Elements" \fIThe Problem\fR .IX Subsection "The Problem" .PP Some modules look directly at hash keys on the Test::Builder singleton. The problem here is that the Test::Builder singleton no longer holds anything important. .PP \fIThe Fix\fR .IX Subsection "The Fix" .PP The fix is to use the \s-1API\s0 specified in Test2::API to look at or modify state as needed. .SS "Subtest indentation" .IX Subsection "Subtest indentation" \fIThe Problem\fR .IX Subsection "The Problem" .PP An early change, in fact the change that made Test2 an idea, was a change to the indentation of the subtest note. It was decided it would be more readable to outdent the subtest note instead of having it inline with the subtest: .PP .Vb 4 \& # subtest foo \& ok 1 \- blah \& 1..1 \& ok 1 \- subtest foo .Ve .PP The old style indented the note: .PP .Vb 4 \& # subtest foo \& ok 1 \- blah \& 1..1 \& ok 1 \- subtest foo .Ve .PP This breaks tests that do string comparison of \s-1TAP\s0 output. .PP \fIThe Fix\fR .IX Subsection "The Fix" .PP .Vb 1 \& my $indent = $INC{\*(AqTest2/API.pm\*(Aq} ? \*(Aq\*(Aq : \*(Aq \*(Aq; \& \& is( \& $subtest_output, \& "${indent}# subtest foo", \& "Got subtest note" \& ); .Ve .PP Check if \f(CW$INC{\*(AqTest2/API.pm\*(Aq}\fR is set, if it is then no indentation should be expected. If it is not set, then the old Test::Builder is in use, indentation should be expected. .SH "DISTRIBUTIONS THAT BREAK OR NEED TO BE UPGRADED" .IX Header "DISTRIBUTIONS THAT BREAK OR NEED TO BE UPGRADED" This is a list of cpan modules that have been known to have been broken by the upgrade at one point. .SS "\s-1WORKS BUT TESTS WILL FAIL\s0" .IX Subsection "WORKS BUT TESTS WILL FAIL" These modules still function correctly, but their test suites will not pass. If you already have these modules installed then you can continue to use them. If you are trying to install them after upgrading Test::Builder you will need to force installation, or bypass the broken tests. .IP "Test::DBIx::Class::Schema" 4 .IX Item "Test::DBIx::Class::Schema" This module has a test that appears to work around a Test::Builder bug. The bug appears to have been fixed by Test2, which means the workaround causes a failure. This can be easily updated, but nobody has done so yet. .Sp Known broken in versions: 1.0.9 and older .IP "Device::Chip" 4 .IX Item "Device::Chip" Tests break due to subtest indentation. .Sp Known broken in version 0.07. Apparently works fine in 0.06 though. Patch has been submitted to fix the issue. .SS "\s-1UPGRADE SUGGESTED\s0" .IX Subsection "UPGRADE SUGGESTED" These are modules that did not break, but had broken test suites that have since been fixed. .IP "Test::Exception" 4 .IX Item "Test::Exception" Old versions work fine, but have a minor test name behavior that breaks with Test2. Old versions will no longer install because of this. The latest version on \s-1CPAN\s0 will install just fine. Upgrading is not required, but is recommended. .Sp Fixed in version: 0.43 .IP "Data::Peek" 4 .IX Item "Data::Peek" Some tests depended on \f(CW$!\fR and \f(CW$?\fR being modified in subtle ways. A patch was applied to correct things that changed. .Sp The module itself works fine, there is no need to upgrade. .Sp Fixed in version: 0.45 .IP "circular::require" 4 .IX Item "circular::require" Some tests were fragile and required base.pm to be loaded at a late stage. Test2 was loading base.pm too early. The tests were updated to fix this. .Sp The module itself never broke, you do not need to upgrade. .Sp Fixed in version: 0.12 .IP "Test::Module::Used" 4 .IX Item "Test::Module::Used" A test worked around a now-fixed planning bug. There is no need to upgrade if you have an old version installed. New versions install fine if you want them. .Sp Fixed in version: 0.2.5 .IP "Test::Moose::More" 4 .IX Item "Test::Moose::More" Some tests were fragile, but have been fixed. The actual breakage was from the subtest comment indentation change. .Sp No need to upgrade, old versions work fine. Only new versions will install. .Sp Fixed in version: 0.025 .IP "Test::FITesque" 4 .IX Item "Test::FITesque" This was broken by a bugfix to how planning is done. The test was updated after the bugfix. .Sp Fixed in version: 0.04 .IP "Test::Kit" 4 .IX Item "Test::Kit" Old versions work fine, but would not install because Test::Aggregate was in the dependency chain. An upgrade should not be needed. .Sp Fixed in version: 2.15 .IP "autouse" 4 .IX Item "autouse" A test broke because it depended on Scalar::Util not being loaded. Test2 loads Scalar::Util. The test was updated to load Test2 after checking Scalar::Util's load status. .Sp There is no need to upgrade if you already have it installed. .Sp Fixed in version: 1.11 .SS "\s-1NEED TO UPGRADE\s0" .IX Subsection "NEED TO UPGRADE" .IP "Test::SharedFork" 4 .IX Item "Test::SharedFork" Old versions need to directly access Test::Builder singleton hash elements. The latest version on \s-1CPAN\s0 will still do this on old Test::Builder, but will defer to Test2::IPC on Test2. .Sp Fixed in version: 0.35 .IP "Test::Builder::Clutch" 4 .IX Item "Test::Builder::Clutch" This works by doing overriding methods on the singleton, and directly accessing hash values on the singleton. A new version has been released that uses the Test2 \s-1API\s0 to accomplish the same result in a saner way. .Sp Fixed in version: 0.07 .IP "Test::Dist::VersionSync" 4 .IX Item "Test::Dist::VersionSync" This had Test::Builder2 conditionals. This was fixed by removing the conditionals. .Sp Fixed in version: 1.1.4 .IP "Test::Modern" 4 .IX Item "Test::Modern" This relied on \f(CW\*(C`Test::Builder\->_try()\*(C'\fR which was a private method, documented as something nobody should use. This was fixed by using a different tool. .Sp Fixed in version: 0.012 .IP "Test::UseAllModules" 4 .IX Item "Test::UseAllModules" Version 0.14 relied on \f(CW\*(C`Test::Builder\->history\*(C'\fR which was available in Test::Builder 1.5. Versions 0.12 and 0.13 relied on other Test::Builder internals. .Sp Fixed in version: 0.15 .IP "Test::More::Prefix" 4 .IX Item "Test::More::Prefix" Worked by applying a role that wrapped \f(CW\*(C`Test::Builder\->_print_comment\*(C'\fR. Fixed by adding an event filter that modifies the message instead when running under Test2. .Sp Fixed in version: 0.007 .SS "\s-1STILL BROKEN\s0" .IX Subsection "STILL BROKEN" .IP "Test::Aggregate" 4 .IX Item "Test::Aggregate" This distribution directly accesses the hash keys in the Test::Builder singleton. It also approaches the problem from the wrong angle, please consider using Test2::Aggregate for similar functionality and Test2::Harness which allows module preloading at the harness level. .Sp Still broken as of version: 0.373 .IP "Test::Wrapper" 4 .IX Item "Test::Wrapper" This module directly uses hash keys in the Test::Builder singleton. This module is also obsolete thanks to the benefits of Test2. Use \f(CW\*(C`intercept()\*(C'\fR from Test2::API to achieve a similar result. .Sp Still broken as of version: 0.3.0 .IP "Test::ParallelSubtest" 4 .IX Item "Test::ParallelSubtest" This module overrides \f(CW\*(C`Test::Builder::subtest()\*(C'\fR and \&\f(CW\*(C`Test::Builder::done_testing()\*(C'\fR. It also directly accesses hash elements of the singleton. It has not yet been fixed. .Sp Alternatives: Test2::AsyncSubtest and Test2::Workflow (not stable). .Sp Still broken as of version: 0.05 .IP "Test::Pretty" 4 .IX Item "Test::Pretty" See https://github.com/tokuhirom/Test\-Pretty/issues/25 .Sp The author admits the module is crazy, and he is awaiting a stable release of something new (Test2) to completely rewrite it in a sane way. .Sp Still broken as of version: 0.32 .IP "Net::BitTorrent" 4 .IX Item "Net::BitTorrent" The tests for this module directly access Test::Builder hash keys. Most, if not all of these hash keys have public \s-1API\s0 methods that could be used instead to avoid the problem. .Sp Still broken in version: 0.052 .IP "Test::Group" 4 .IX Item "Test::Group" It monkeypatches Test::Builder, and calls it \*(L"black magic\*(R" in the code. .Sp Still broken as of version: 0.20 .IP "Test::Flatten" 4 .IX Item "Test::Flatten" This modifies the Test::Builder internals in many ways. A better was to accomplish the goal of this module is to write your own subtest function. .Sp Still broken as of version: 0.11 .IP "Log::Dispatch::Config::TestLog" 4 .IX Item "Log::Dispatch::Config::TestLog" Modifies Test::Builder internals. .Sp Still broken as of version: 0.02 .IP "Test::Able" 4 .IX Item "Test::Able" Modifies Test::Builder internals. .Sp Still broken as of version: 0.11 .SH "MAKE ASSERTIONS \-> SEND EVENTS" .IX Header "MAKE ASSERTIONS -> SEND EVENTS" .SS "\s-1LEGACY\s0" .IX Subsection "LEGACY" .Vb 1 \& use Test::Builder; \& \& # A majority of tools out there do this: \& # my $TB = Test::Builder\->new; \& # This works, but has always been wrong, forcing Test::Builder to implement \& # subtests as a horrific hack. It also causes problems for tools that try \& # to replace the singleton (also discouraged). \& \& sub my_ok($;$) { \& my ($bool, $name) = @_; \& my $TB = Test::Builder\->new; \& $TB\->ok($bool, $name); \& } \& \& sub my_diag($) { \& my ($msg) = @_; \& my $TB = Test::Builder\->new; \& $TB\->diag($msg); \& } .Ve .SS "\s-1TEST2\s0" .IX Subsection "TEST2" .Vb 1 \& use Test2::API qw/context/; \& \& sub my_ok($;$) { \& my ($bool, $name) = @_; \& my $ctx = context(); \& $ctx\->ok($bool, $name); \& $ctx\->release; \& } \& \& sub my_diag($) { \& my ($msg) = @_; \& my $ctx = context(); \& $ctx\->diag($msg); \& $ctx\->release; \& } .Ve .PP The context object has \s-1API\s0 compatible implementations of the following methods: .ie n .IP "ok($bool, $name)" 4 .el .IP "ok($bool, \f(CW$name\fR)" 4 .IX Item "ok($bool, $name)" .PD 0 .IP "diag(@messages)" 4 .IX Item "diag(@messages)" .IP "note(@messages)" 4 .IX Item "note(@messages)" .ie n .IP "subtest($name, $code)" 4 .el .IP "subtest($name, \f(CW$code\fR)" 4 .IX Item "subtest($name, $code)" .PD .PP If you are looking for helpers with \f(CW\*(C`is\*(C'\fR, \f(CW\*(C`like\*(C'\fR, and others, see Test2::Suite. .SH "WRAP EXISTING TOOLS" .IX Header "WRAP EXISTING TOOLS" .SS "\s-1LEGACY\s0" .IX Subsection "LEGACY" .Vb 1 \& use Test::More; \& \& sub exclusive_ok { \& my ($bool1, $bool2, $name) = @_; \& \& # Ensure errors are reported 1 level higher \& local $Test::Builder::Level = $Test::Builder::Level + 1; \& \& $ok = $bool1 || $bool2; \& $ok &&= !($bool1 && $bool2); \& ok($ok, $name); \& \& return $bool; \& } .Ve .PP Every single tool in the chain from this, to \f(CW\*(C`ok\*(C'\fR, to anything \f(CW\*(C`ok\*(C'\fR calls needs to increment the \f(CW$Level\fR variable. When an error occurs Test::Builder will do a trace to the stack frame determined by \f(CW$Level\fR, and report that file+line as the one where the error occurred. If you or any other tool you use forgets to set \f(CW$Level\fR then errors will be reported to the wrong place. .SS "\s-1TEST2\s0" .IX Subsection "TEST2" .Vb 1 \& use Test::More; \& \& sub exclusive_ok { \& my ($bool1, $bool2, $name) = @_; \& \& # Grab and store the context, even if you do not need to use it \& # directly. \& my $ctx = context(); \& \& $ok = $bool1 || $bool2; \& $ok &&= !($bool1 && $bool2); \& ok($ok, $name); \& \& $ctx\->release; \& return $bool; \& } .Ve .PP Instead of using \f(CW$Level\fR to perform a backtrace, Test2 uses a context object. In this sample you create a context object and store it. This locks the context (errors report 1 level up from here) for all wrapped tools to find. You do not need to use the context object, but you do need to store it in a variable. Once the sub ends the \f(CW$ctx\fR variable is destroyed which lets future tools find their own. .SH "USING UTF8" .IX Header "USING UTF8" .SS "\s-1LEGACY\s0" .IX Subsection "LEGACY" .Vb 3 \& # Set the mode BEFORE anything loads Test::Builder \& use open \*(Aq:std\*(Aq, \*(Aq:encoding(utf8)\*(Aq; \& use Test::More; .Ve .PP Or .PP .Vb 5 \& # Modify the filehandles \& my $builder = Test::More\->builder; \& binmode $builder\->output, ":encoding(utf8)"; \& binmode $builder\->failure_output, ":encoding(utf8)"; \& binmode $builder\->todo_output, ":encoding(utf8)"; .Ve .SS "\s-1TEST2\s0" .IX Subsection "TEST2" .Vb 1 \& use Test2::API qw/test2_stack/; \& \& test2_stack\->top\->format\->encoding(\*(Aqutf8\*(Aq); .Ve .PP Though a much better way is to use the Test2::Plugin::UTF8 plugin, which is part of Test2::Suite. .SH "AUTHORS, CONTRIBUTORS AND REVIEWERS" .IX Header "AUTHORS, CONTRIBUTORS AND REVIEWERS" The following people have all contributed to this document in some way, even if only for review. .IP "Chad Granum (\s-1EXODIST\s0) <exodist@cpan.org>" 4 .IX Item "Chad Granum (EXODIST) <exodist@cpan.org>" .SH "SOURCE" .IX Header "SOURCE" The source code repository for Test2 can be found at \&\fIhttp://github.com/Test\-More/test\-more/\fR. .SH "MAINTAINER" .IX Header "MAINTAINER" .IP "Chad Granum <exodist@cpan.org>" 4 .IX Item "Chad Granum <exodist@cpan.org>" .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright 2020 Chad Granum <exodist@cpan.org>. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .PP See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR
Close