Not sure this ever worked correctly in the first place
+ - Handle ':all' correctly
+
0.001005 - 2012-08-25
- Add support for tags
- Warn if defaults are not in exports
last OPTIONS
}
}
- @{$_} = map { $_ eq '-all' ? @exports : $_ } @{$_} for \@defaults, values %tags;
+ @{$_} = map { / \A [:-] all \z /x ? @exports : $_ } @{$_} for \@defaults, values %tags;
+ $tags{all} ||= [ @exports ];
my @errors = grep { my $default = $_; !grep { $default eq $_ } @exports } @defaults;
die join(', ', @errors) . " is not exported by the $inner_target module\n" if @errors;
}
ok(main->can('junk2'), 'sub exported');
ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded');
+package Other;
+use Test::More;
+use A::JunkAll ':all';
+
+ok(main->can('junk1'), 'sub exported');
+ok(main->can('junk2'), 'sub exported');
+ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded');
+
done_testing;