exiftool-vendored.exe 12.82.0 → 12.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/bin/exiftool.exe +0 -0
- package/bin/exiftool_files/Licenses_Strawberry_Perl.zip +0 -0
- package/bin/exiftool_files/lib/Archive/Zip/Archive.pm +399 -65
- package/bin/exiftool_files/lib/Archive/Zip/DirectoryMember.pm +1 -1
- package/bin/exiftool_files/lib/Archive/Zip/FileMember.pm +1 -1
- package/bin/exiftool_files/lib/Archive/Zip/Member.pm +499 -195
- package/bin/exiftool_files/lib/Archive/Zip/NewFileMember.pm +1 -1
- package/bin/exiftool_files/lib/Archive/Zip/StringMember.pm +2 -2
- package/bin/exiftool_files/lib/Archive/Zip/ZipFileMember.pm +79 -20
- package/bin/exiftool_files/lib/Archive/Zip.pm +179 -29
- package/bin/exiftool_files/lib/AutoLoader.pm +453 -0
- package/bin/exiftool_files/lib/B/Deparse.pm +209 -137
- package/bin/exiftool_files/lib/B.pm +1 -1
- package/bin/exiftool_files/lib/Benchmark.pm +1123 -0
- package/bin/exiftool_files/lib/Class/Struct.pm +2 -2
- package/bin/exiftool_files/lib/Compress/Raw/Bzip2.pm +14 -9
- package/bin/exiftool_files/lib/Compress/Raw/Lzma.pm +982 -0
- package/bin/exiftool_files/lib/Compress/Raw/Zlib.pm +91 -86
- package/bin/exiftool_files/lib/Compress/Zlib.pm +105 -100
- package/bin/exiftool_files/lib/Config.pm +9 -9
- package/bin/exiftool_files/lib/Config_heavy.pl +36 -33
- package/bin/exiftool_files/lib/CryptX.pm +2 -82
- package/bin/exiftool_files/lib/Data/Dumper.pm +2 -2
- package/bin/exiftool_files/lib/Digest/MD5.pm +12 -9
- package/bin/exiftool_files/lib/Digest/Perl/MD5.pm +1 -191
- package/bin/exiftool_files/lib/Digest/base.pm +26 -20
- package/bin/exiftool_files/lib/DynaLoader.pm +7 -4
- package/bin/exiftool_files/lib/Encode.pm +3 -3
- package/bin/exiftool_files/lib/Errno.pm +13 -13
- package/bin/exiftool_files/lib/Exporter/Heavy.pm +2 -2
- package/bin/exiftool_files/lib/Exporter.pm +1 -1
- package/bin/exiftool_files/lib/ExtUtils/Command/MM.pm +323 -0
- package/bin/exiftool_files/lib/ExtUtils/Command.pm +382 -0
- package/bin/exiftool_files/lib/File/Find.pm +1 -1
- package/bin/exiftool_files/lib/File/Glob.pm +1 -8
- package/bin/exiftool_files/lib/File/GlobMapper.pm +2 -2
- package/bin/exiftool_files/lib/File/HomeDir/Darwin/Carbon.pm +2 -40
- package/bin/exiftool_files/lib/File/HomeDir/Darwin/Cocoa.pm +2 -34
- package/bin/exiftool_files/lib/File/HomeDir/Darwin.pm +2 -28
- package/bin/exiftool_files/lib/File/HomeDir/Driver.pm +2 -35
- package/bin/exiftool_files/lib/File/HomeDir/FreeDesktop.pm +2 -62
- package/bin/exiftool_files/lib/File/HomeDir/MacOS9.pm +2 -53
- package/bin/exiftool_files/lib/File/HomeDir/Test.pm +2 -43
- package/bin/exiftool_files/lib/File/HomeDir/Unix.pm +2 -53
- package/bin/exiftool_files/lib/File/HomeDir/Windows.pm +2 -69
- package/bin/exiftool_files/lib/File/HomeDir.pm +5 -416
- package/bin/exiftool_files/lib/File/Path.pm +3 -3
- package/bin/exiftool_files/lib/File/Spec/Win32.pm +2 -2
- package/bin/exiftool_files/lib/File/Temp.pm +70 -35
- package/bin/exiftool_files/lib/File/Which.pm +1 -240
- package/bin/exiftool_files/lib/File/stat.pm +3 -2
- package/bin/exiftool_files/lib/IO/Compress/Adapter/Bzip2.pm +16 -17
- package/bin/exiftool_files/lib/IO/Compress/Adapter/Deflate.pm +19 -20
- package/bin/exiftool_files/lib/IO/Compress/Base/Common.pm +5 -5
- package/bin/exiftool_files/lib/IO/Compress/Base.pm +35 -26
- package/bin/exiftool_files/lib/IO/Compress/Brotli.pm +159 -0
- package/bin/exiftool_files/lib/IO/Compress/Bzip2.pm +50 -25
- package/bin/exiftool_files/lib/IO/Compress/Gzip/Constants.pm +6 -6
- package/bin/exiftool_files/lib/IO/Compress/Gzip.pm +58 -32
- package/bin/exiftool_files/lib/IO/Compress/RawDeflate.pm +63 -38
- package/bin/exiftool_files/lib/IO/Compress/Zlib/Extra.pm +20 -20
- package/bin/exiftool_files/lib/IO/Dir.pm +1 -1
- package/bin/exiftool_files/lib/IO/File.pm +1 -1
- package/bin/exiftool_files/lib/IO/Handle.pm +1 -21
- package/bin/exiftool_files/lib/IO/Pipe.pm +1 -1
- package/bin/exiftool_files/lib/IO/Seekable.pm +1 -1
- package/bin/exiftool_files/lib/IO/Select.pm +16 -2
- package/bin/exiftool_files/lib/IO/Socket/INET.pm +14 -9
- package/bin/exiftool_files/lib/IO/Socket/UNIX.pm +17 -1
- package/bin/exiftool_files/lib/IO/Socket.pm +474 -126
- package/bin/exiftool_files/lib/IO/String.pm +425 -0
- package/bin/exiftool_files/lib/IO/Uncompress/Adapter/Inflate.pm +13 -14
- package/bin/exiftool_files/lib/IO/Uncompress/Base.pm +142 -132
- package/bin/exiftool_files/lib/IO/Uncompress/Brotli.pm +119 -0
- package/bin/exiftool_files/lib/IO/Uncompress/Gunzip.pm +43 -37
- package/bin/exiftool_files/lib/IO/Uncompress/RawInflate.pm +49 -43
- package/bin/exiftool_files/lib/IO.pm +2 -2
- package/bin/exiftool_files/lib/List/Util.pm +97 -8
- package/bin/exiftool_files/lib/MIME/Base64.pm +5 -5
- package/bin/exiftool_files/lib/MIME/Charset/_Compat.pm +106 -0
- package/bin/exiftool_files/lib/MIME/Charset.pm +1303 -0
- package/bin/exiftool_files/lib/Math/BigFloat.pm +444 -27
- package/bin/exiftool_files/lib/Math/BigInt/Calc.pm +296 -313
- package/bin/exiftool_files/lib/Math/BigInt/FastCalc.pm +1 -1
- package/bin/exiftool_files/lib/Math/BigInt/GMP.pm +2 -115
- package/bin/exiftool_files/lib/Math/BigInt/LTM.pm +2 -24
- package/bin/exiftool_files/lib/Math/BigInt/Lib.pm +61 -32
- package/bin/exiftool_files/lib/Math/BigInt.pm +292 -107
- package/bin/exiftool_files/lib/POSIX.pm +1 -1
- package/bin/exiftool_files/lib/PerlIO/scalar.pm +41 -0
- package/bin/exiftool_files/lib/PerlIO.pm +397 -0
- package/bin/exiftool_files/lib/Portable/CPAN.pm +94 -94
- package/bin/exiftool_files/lib/Portable/Config.pm +94 -94
- package/bin/exiftool_files/lib/Portable/FileSpec.pm +180 -180
- package/bin/exiftool_files/lib/Portable/HomeDir.pm +110 -110
- package/bin/exiftool_files/lib/Portable/LoadYaml.pm +430 -430
- package/bin/exiftool_files/lib/Portable/minicpan.pm +55 -55
- package/bin/exiftool_files/lib/Portable.pm +246 -320
- package/bin/exiftool_files/lib/Scalar/Util.pm +9 -4
- package/bin/exiftool_files/lib/Socket.pm +16 -12
- package/bin/exiftool_files/lib/Storable.pm +1444 -1441
- package/bin/exiftool_files/lib/TAP/Base.pm +133 -0
- package/bin/exiftool_files/lib/TAP/Formatter/Base.pm +467 -0
- package/bin/exiftool_files/lib/TAP/Formatter/Color.pm +116 -0
- package/bin/exiftool_files/lib/TAP/Formatter/Console/ParallelSession.pm +201 -0
- package/bin/exiftool_files/lib/TAP/Formatter/Console/Session.pm +205 -0
- package/bin/exiftool_files/lib/TAP/Formatter/Console.pm +100 -0
- package/bin/exiftool_files/lib/TAP/Formatter/File/Session.pm +95 -0
- package/bin/exiftool_files/lib/TAP/Formatter/File.pm +56 -0
- package/bin/exiftool_files/lib/TAP/Formatter/Session.pm +220 -0
- package/bin/exiftool_files/lib/TAP/Harness/Beyond.pod +426 -0
- package/bin/exiftool_files/lib/TAP/Harness/Env.pm +215 -0
- package/bin/exiftool_files/lib/TAP/Harness.pm +1054 -0
- package/bin/exiftool_files/lib/TAP/Object.pm +155 -0
- package/bin/exiftool_files/lib/TAP/Parser/Aggregator.pm +414 -0
- package/bin/exiftool_files/lib/TAP/Parser/Grammar.pm +584 -0
- package/bin/exiftool_files/lib/TAP/Parser/Iterator/Array.pm +100 -0
- package/bin/exiftool_files/lib/TAP/Parser/Iterator/Process.pm +378 -0
- package/bin/exiftool_files/lib/TAP/Parser/Iterator/Stream.pm +116 -0
- package/bin/exiftool_files/lib/TAP/Parser/Iterator.pm +162 -0
- package/bin/exiftool_files/lib/TAP/Parser/IteratorFactory.pm +339 -0
- package/bin/exiftool_files/lib/TAP/Parser/Multiplexer.pm +194 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/Bailout.pm +62 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/Comment.pm +60 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/Plan.pm +119 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/Pragma.pm +62 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/Test.pm +271 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/Unknown.pm +48 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/Version.pm +62 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result/YAML.pm +61 -0
- package/bin/exiftool_files/lib/TAP/Parser/Result.pm +297 -0
- package/bin/exiftool_files/lib/TAP/Parser/ResultFactory.pm +183 -0
- package/bin/exiftool_files/lib/TAP/Parser/Scheduler/Job.pm +127 -0
- package/bin/exiftool_files/lib/TAP/Parser/Scheduler/Spinner.pm +61 -0
- package/bin/exiftool_files/lib/TAP/Parser/Scheduler.pm +448 -0
- package/bin/exiftool_files/lib/TAP/Parser/Source.pm +381 -0
- package/bin/exiftool_files/lib/TAP/Parser/SourceHandler/Executable.pm +184 -0
- package/bin/exiftool_files/lib/TAP/Parser/SourceHandler/File.pm +136 -0
- package/bin/exiftool_files/lib/TAP/Parser/SourceHandler/Handle.pm +124 -0
- package/bin/exiftool_files/lib/TAP/Parser/SourceHandler/Perl.pm +370 -0
- package/bin/exiftool_files/lib/TAP/Parser/SourceHandler/RawTAP.pm +130 -0
- package/bin/exiftool_files/lib/TAP/Parser/SourceHandler.pm +191 -0
- package/bin/exiftool_files/lib/TAP/Parser/YAMLish/Reader.pm +332 -0
- package/bin/exiftool_files/lib/TAP/Parser/YAMLish/Writer.pm +254 -0
- package/bin/exiftool_files/lib/TAP/Parser.pm +1931 -0
- package/bin/exiftool_files/lib/Test/Builder/Formatter.pm +107 -0
- package/bin/exiftool_files/lib/Test/Builder/IO/Scalar.pm +659 -0
- package/bin/exiftool_files/lib/Test/Builder/Module.pm +182 -0
- package/bin/exiftool_files/lib/Test/Builder/Tester/Color.pm +51 -0
- package/bin/exiftool_files/lib/Test/Builder/Tester.pm +675 -0
- package/bin/exiftool_files/lib/Test/Builder/TodoDiag.pm +68 -0
- package/bin/exiftool_files/lib/Test/Builder.pm +2653 -0
- package/bin/exiftool_files/lib/Test/Harness.pm +618 -0
- package/bin/exiftool_files/lib/Test/More.pm +1997 -0
- package/bin/exiftool_files/lib/Test/Simple.pm +220 -0
- package/bin/exiftool_files/lib/Test/Tester/Capture.pm +241 -0
- package/bin/exiftool_files/lib/Test/Tester/CaptureRunner.pm +79 -0
- package/bin/exiftool_files/lib/Test/Tester/Delegate.pm +45 -0
- package/bin/exiftool_files/lib/Test/Tester.pm +695 -0
- package/bin/exiftool_files/lib/Test/Tutorial.pod +618 -0
- package/bin/exiftool_files/lib/Test/use/ok.pm +64 -0
- package/bin/exiftool_files/lib/Text/ParseWords.pm +303 -0
- package/bin/exiftool_files/lib/Tie/StdHandle.pm +2 -2
- package/bin/exiftool_files/lib/Time/HiRes.pm +73 -68
- package/bin/exiftool_files/lib/Time/Local.pm +82 -35
- package/bin/exiftool_files/lib/Time/Piece.pm +19 -4
- package/bin/exiftool_files/lib/Time/Seconds.pm +1 -1
- package/bin/exiftool_files/lib/UNIVERSAL.pm +203 -0
- package/bin/exiftool_files/lib/Unicode/GCString.pm +60 -0
- package/bin/exiftool_files/lib/Unicode/LineBreak/Constants.pm +68 -0
- package/bin/exiftool_files/lib/Unicode/LineBreak.pm +248 -0
- package/bin/exiftool_files/lib/Win32/API/Struct.pm +1 -177
- package/bin/exiftool_files/lib/Win32/API/Type.pm +1 -100
- package/bin/exiftool_files/lib/Win32/API.pm +1 -830
- package/bin/exiftool_files/lib/Win32/FindFile.pm +2 -123
- package/bin/exiftool_files/lib/Win32.pm +213 -89
- package/bin/exiftool_files/lib/Win32API/File.pm +1 -1
- package/bin/exiftool_files/lib/auto/B/B.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Compress/Raw/Bzip2/Bzip2.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Compress/Raw/Lzma/Lzma.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Compress/Raw/Lzma/autosplit.ix +3 -0
- package/bin/exiftool_files/lib/auto/Compress/Raw/Zlib/Zlib.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/CryptX/CryptX.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Cwd/Cwd.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Data/Dumper/Dumper.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Digest/MD5/MD5.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Digest/SHA/SHA.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Encode/Encode.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Fcntl/Fcntl.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/File/Glob/Glob.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/IO/Compress/Brotli/Brotli.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/IO/IO.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/List/Util/Util.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/MIME/Base64/Base64.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Math/BigInt/FastCalc/FastCalc.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Math/BigInt/GMP/GMP.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/POSIX/POSIX.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/PerlIO/scalar/scalar.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Socket/Socket.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Storable/Storable.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Time/HiRes/HiRes.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Time/Piece/Piece.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Unicode/LineBreak/LineBreak.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Win32/API/API.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Win32/FindFile/FindFile.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Win32/Win32.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/Win32API/File/File.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/mro/mro.xs.dll +0 -0
- package/bin/exiftool_files/lib/auto/re/re.xs.dll +0 -0
- package/bin/exiftool_files/lib/feature.pm +49 -17
- package/bin/exiftool_files/lib/mro.pm +4 -20
- package/bin/exiftool_files/lib/overload.pm +15 -15
- package/bin/exiftool_files/lib/parent.pm +10 -2
- package/bin/exiftool_files/lib/re.pm +91 -33
- package/bin/exiftool_files/lib/warnings.pm +17 -6
- package/bin/exiftool_files/libgcc_s_seh-1.dll +0 -0
- package/bin/exiftool_files/liblzma-5__.dll +0 -0
- package/bin/exiftool_files/libstdc++-6.dll +0 -0
- package/bin/exiftool_files/libwinpthread-1.dll +0 -0
- package/bin/exiftool_files/perl.exe +0 -0
- package/bin/exiftool_files/perl532.dll +0 -0
- package/package.json +5 -3
- package/bin/exiftool_files/libgcc_s_dw2-1.dll +0 -0
- package/bin/exiftool_files/perl530.dll +0 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
package Test::Builder::Module;
|
|
2
|
+
|
|
3
|
+
use strict;
|
|
4
|
+
|
|
5
|
+
use Test::Builder;
|
|
6
|
+
|
|
7
|
+
require Exporter;
|
|
8
|
+
our @ISA = qw(Exporter);
|
|
9
|
+
|
|
10
|
+
our $VERSION = '1.302183';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
=head1 NAME
|
|
14
|
+
|
|
15
|
+
Test::Builder::Module - Base class for test modules
|
|
16
|
+
|
|
17
|
+
=head1 SYNOPSIS
|
|
18
|
+
|
|
19
|
+
# Emulates Test::Simple
|
|
20
|
+
package Your::Module;
|
|
21
|
+
|
|
22
|
+
my $CLASS = __PACKAGE__;
|
|
23
|
+
|
|
24
|
+
use parent 'Test::Builder::Module';
|
|
25
|
+
@EXPORT = qw(ok);
|
|
26
|
+
|
|
27
|
+
sub ok ($;$) {
|
|
28
|
+
my $tb = $CLASS->builder;
|
|
29
|
+
return $tb->ok(@_);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
1;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
=head1 DESCRIPTION
|
|
36
|
+
|
|
37
|
+
This is a superclass for L<Test::Builder>-based modules. It provides a
|
|
38
|
+
handful of common functionality and a method of getting at the underlying
|
|
39
|
+
L<Test::Builder> object.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
=head2 Importing
|
|
43
|
+
|
|
44
|
+
Test::Builder::Module is a subclass of L<Exporter> which means your
|
|
45
|
+
module is also a subclass of Exporter. @EXPORT, @EXPORT_OK, etc...
|
|
46
|
+
all act normally.
|
|
47
|
+
|
|
48
|
+
A few methods are provided to do the C<< use Your::Module tests => 23 >> part
|
|
49
|
+
for you.
|
|
50
|
+
|
|
51
|
+
=head3 import
|
|
52
|
+
|
|
53
|
+
Test::Builder::Module provides an C<import()> method which acts in the
|
|
54
|
+
same basic way as L<Test::More>'s, setting the plan and controlling
|
|
55
|
+
exporting of functions and variables. This allows your module to set
|
|
56
|
+
the plan independent of L<Test::More>.
|
|
57
|
+
|
|
58
|
+
All arguments passed to C<import()> are passed onto
|
|
59
|
+
C<< Your::Module->builder->plan() >> with the exception of
|
|
60
|
+
C<< import =>[qw(things to import)] >>.
|
|
61
|
+
|
|
62
|
+
use Your::Module import => [qw(this that)], tests => 23;
|
|
63
|
+
|
|
64
|
+
says to import the functions C<this()> and C<that()> as well as set the plan
|
|
65
|
+
to be 23 tests.
|
|
66
|
+
|
|
67
|
+
C<import()> also sets the C<exported_to()> attribute of your builder to be
|
|
68
|
+
the caller of the C<import()> function.
|
|
69
|
+
|
|
70
|
+
Additional behaviors can be added to your C<import()> method by overriding
|
|
71
|
+
C<import_extra()>.
|
|
72
|
+
|
|
73
|
+
=cut
|
|
74
|
+
|
|
75
|
+
sub import {
|
|
76
|
+
my($class) = shift;
|
|
77
|
+
|
|
78
|
+
Test2::API::test2_load() unless Test2::API::test2_in_preload();
|
|
79
|
+
|
|
80
|
+
# Don't run all this when loading ourself.
|
|
81
|
+
return 1 if $class eq 'Test::Builder::Module';
|
|
82
|
+
|
|
83
|
+
my $test = $class->builder;
|
|
84
|
+
|
|
85
|
+
my $caller = caller;
|
|
86
|
+
|
|
87
|
+
$test->exported_to($caller);
|
|
88
|
+
|
|
89
|
+
$class->import_extra( \@_ );
|
|
90
|
+
my(@imports) = $class->_strip_imports( \@_ );
|
|
91
|
+
|
|
92
|
+
$test->plan(@_);
|
|
93
|
+
|
|
94
|
+
local $Exporter::ExportLevel = $Exporter::ExportLevel + 1;
|
|
95
|
+
$class->Exporter::import(@imports);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
sub _strip_imports {
|
|
99
|
+
my $class = shift;
|
|
100
|
+
my $list = shift;
|
|
101
|
+
|
|
102
|
+
my @imports = ();
|
|
103
|
+
my @other = ();
|
|
104
|
+
my $idx = 0;
|
|
105
|
+
while( $idx <= $#{$list} ) {
|
|
106
|
+
my $item = $list->[$idx];
|
|
107
|
+
|
|
108
|
+
if( defined $item and $item eq 'import' ) {
|
|
109
|
+
push @imports, @{ $list->[ $idx + 1 ] };
|
|
110
|
+
$idx++;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
push @other, $item;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
$idx++;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@$list = @other;
|
|
120
|
+
|
|
121
|
+
return @imports;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
=head3 import_extra
|
|
125
|
+
|
|
126
|
+
Your::Module->import_extra(\@import_args);
|
|
127
|
+
|
|
128
|
+
C<import_extra()> is called by C<import()>. It provides an opportunity for you
|
|
129
|
+
to add behaviors to your module based on its import list.
|
|
130
|
+
|
|
131
|
+
Any extra arguments which shouldn't be passed on to C<plan()> should be
|
|
132
|
+
stripped off by this method.
|
|
133
|
+
|
|
134
|
+
See L<Test::More> for an example of its use.
|
|
135
|
+
|
|
136
|
+
B<NOTE> This mechanism is I<VERY ALPHA AND LIKELY TO CHANGE> as it
|
|
137
|
+
feels like a bit of an ugly hack in its current form.
|
|
138
|
+
|
|
139
|
+
=cut
|
|
140
|
+
|
|
141
|
+
sub import_extra { }
|
|
142
|
+
|
|
143
|
+
=head2 Builder
|
|
144
|
+
|
|
145
|
+
Test::Builder::Module provides some methods of getting at the underlying
|
|
146
|
+
Test::Builder object.
|
|
147
|
+
|
|
148
|
+
=head3 builder
|
|
149
|
+
|
|
150
|
+
my $builder = Your::Class->builder;
|
|
151
|
+
|
|
152
|
+
This method returns the L<Test::Builder> object associated with Your::Class.
|
|
153
|
+
It is not a constructor so you can call it as often as you like.
|
|
154
|
+
|
|
155
|
+
This is the preferred way to get the L<Test::Builder> object. You should
|
|
156
|
+
I<not> get it via C<< Test::Builder->new >> as was previously
|
|
157
|
+
recommended.
|
|
158
|
+
|
|
159
|
+
The object returned by C<builder()> may change at runtime so you should
|
|
160
|
+
call C<builder()> inside each function rather than store it in a global.
|
|
161
|
+
|
|
162
|
+
sub ok {
|
|
163
|
+
my $builder = Your::Class->builder;
|
|
164
|
+
|
|
165
|
+
return $builder->ok(@_);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
=cut
|
|
170
|
+
|
|
171
|
+
sub builder {
|
|
172
|
+
return Test::Builder->new;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
=head1 SEE ALSO
|
|
176
|
+
|
|
177
|
+
L<< Test2::Manual::Tooling::TestBuilder >> describes the improved
|
|
178
|
+
options for writing testing modules provided by L<< Test2 >>.
|
|
179
|
+
|
|
180
|
+
=cut
|
|
181
|
+
|
|
182
|
+
1;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
package Test::Builder::Tester::Color;
|
|
2
|
+
|
|
3
|
+
use strict;
|
|
4
|
+
our $VERSION = '1.302183';
|
|
5
|
+
|
|
6
|
+
require Test::Builder::Tester;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
=head1 NAME
|
|
10
|
+
|
|
11
|
+
Test::Builder::Tester::Color - turn on colour in Test::Builder::Tester
|
|
12
|
+
|
|
13
|
+
=head1 SYNOPSIS
|
|
14
|
+
|
|
15
|
+
When running a test script
|
|
16
|
+
|
|
17
|
+
perl -MTest::Builder::Tester::Color test.t
|
|
18
|
+
|
|
19
|
+
=head1 DESCRIPTION
|
|
20
|
+
|
|
21
|
+
Importing this module causes the subroutine color in Test::Builder::Tester
|
|
22
|
+
to be called with a true value causing colour highlighting to be turned
|
|
23
|
+
on in debug output.
|
|
24
|
+
|
|
25
|
+
The sole purpose of this module is to enable colour highlighting
|
|
26
|
+
from the command line.
|
|
27
|
+
|
|
28
|
+
=cut
|
|
29
|
+
|
|
30
|
+
sub import {
|
|
31
|
+
Test::Builder::Tester::color(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
=head1 AUTHOR
|
|
35
|
+
|
|
36
|
+
Copyright Mark Fowler E<lt>mark@twoshortplanks.comE<gt> 2002.
|
|
37
|
+
|
|
38
|
+
This program is free software; you can redistribute it
|
|
39
|
+
and/or modify it under the same terms as Perl itself.
|
|
40
|
+
|
|
41
|
+
=head1 BUGS
|
|
42
|
+
|
|
43
|
+
This module will have no effect unless Term::ANSIColor is installed.
|
|
44
|
+
|
|
45
|
+
=head1 SEE ALSO
|
|
46
|
+
|
|
47
|
+
L<Test::Builder::Tester>, L<Term::ANSIColor>
|
|
48
|
+
|
|
49
|
+
=cut
|
|
50
|
+
|
|
51
|
+
1;
|