Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #380.
- Loading branch information
Showing
4 changed files
with
62 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
use Test::More; | ||
use strict; | ||
use warnings; | ||
|
||
use lib 't/lib'; | ||
use MetaCPAN::TestHelpers; | ||
|
||
test_release( | ||
{ | ||
name => 'local-lib-0.01', | ||
author => 'BORISNAT', | ||
abstract => 'Legitimate module', | ||
authorized => \1, | ||
first => \1, | ||
provides => ['local::lib'], | ||
modules => { | ||
'lib/local/lib.pm' => [ | ||
{ | ||
name => 'local::lib', | ||
indexed => \1, | ||
authorized => \1, | ||
version => '0.01', | ||
version_numified => 0.01, | ||
associated_pod => | ||
'BORISNAT/local-lib-0.01/lib/local/lib.pm', | ||
}, | ||
], | ||
}, | ||
extra_tests => sub { | ||
my ($self) = @_; | ||
|
||
{ | ||
my $file = $self->file_by_path('lib/local/lib.pm'); | ||
|
||
ok $file->indexed, 'local::lib should be indexed'; | ||
ok $file->authorized, 'local::lib should be authorized'; | ||
is $file->sloc, 3, 'sloc'; | ||
is $file->slop, 2, 'slop'; | ||
|
||
is_deeply $file->{pod_lines}, [ [ 4, 3 ] ], 'pod_lines'; | ||
|
||
is $file->abstract, q[Legitimate module], 'abstract'; | ||
} | ||
|
||
}, | ||
} | ||
); | ||
|
||
done_testing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "local-lib", | ||
"version": "0.01", | ||
"abstract": "undef (no meta files)", | ||
"X_Module_Faker": { | ||
"cpan_author": "BORISNAT", | ||
"omitted_files": ["META.json", "META.yml"], | ||
"append": [ { | ||
"file": "lib/local/lib.pm", | ||
"content": "# Module::Faker\n=head1 NAME\n\nlocal::lib - Legitimate module\n" | ||
} ] | ||
} | ||
} |