Skip to content

Commit

Permalink
Fixed t/lib and refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kfly8 committed Aug 18, 2024
1 parent f52d7d7 commit 9e1bbe3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion t/01-kura.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use Test2::V0;

use lib 't/lib';
use lib './t/lib';
use MyChecker;

subtest 'Test `kura` features' => sub {
Expand Down
5 changes: 3 additions & 2 deletions t/02-import_into.t
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use Test2::V0;
use lib 't/lib';

use lib './t/lib';
use MyChecker;

subtest 'Test `import_into` method' => sub {
subtest 'Customize the import method to your taste' => sub {
use MyKura Foo => MyChecker->new;
use mykura Foo => MyChecker->new;

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.36

Can't locate mykura.pm in @inc (you may need to install the mykura module) (@inc contains: ./t/lib /home/runner/work/kura/kura/blib/arch /home/runner/work/kura/kura/blib/lib /home/runner/work/kura/kura/local/lib/perl5 /home/runner/work/kura/kura/local/lib/perl5/x86_64-linux /home/runner/work/_actions/shogo82148/actions-setup-perl/v1/scripts/lib /opt/hostedtoolcache/perl/5.36.3/x64/lib/site_perl/5.36.3/x86_64-linux /opt/hostedtoolcache/perl/5.36.3/x64/lib/site_perl/5.36.3 /opt/hostedtoolcache/perl/5.36.3/x64/lib/5.36.3/x86_64-linux /opt/hostedtoolcache/perl/5.36.3/x64/lib/5.36.3)

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.36

BEGIN failed--compilation aborted

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.32

Can't locate mykura.pm in @inc (you may need to install the mykura module) (@inc contains: ./t/lib /home/runner/work/kura/kura/blib/arch /home/runner/work/kura/kura/blib/lib /home/runner/work/kura/kura/local/lib/perl5 /home/runner/work/kura/kura/local/lib/perl5/x86_64-linux /home/runner/work/_actions/shogo82148/actions-setup-perl/v1/scripts/lib /opt/hostedtoolcache/perl/5.32.1/x64/lib/site_perl/5.32.1/x86_64-linux /opt/hostedtoolcache/perl/5.32.1/x64/lib/site_perl/5.32.1 /opt/hostedtoolcache/perl/5.32.1/x64/lib/5.32.1/x86_64-linux /opt/hostedtoolcache/perl/5.32.1/x64/lib/5.32.1)

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.32

BEGIN failed--compilation aborted

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.30

Can't locate mykura.pm in @inc (you may need to install the mykura module) (@inc contains: ./t/lib /home/runner/work/kura/kura/blib/arch /home/runner/work/kura/kura/blib/lib /home/runner/work/kura/kura/local/lib/perl5 /home/runner/work/kura/kura/local/lib/perl5/x86_64-linux /home/runner/work/_actions/shogo82148/actions-setup-perl/v1/scripts/lib /opt/hostedtoolcache/perl/5.30.3/x64/lib/site_perl/5.30.3/x86_64-linux /opt/hostedtoolcache/perl/5.30.3/x64/lib/site_perl/5.30.3 /opt/hostedtoolcache/perl/5.30.3/x64/lib/5.30.3/x86_64-linux /opt/hostedtoolcache/perl/5.30.3/x64/lib/5.30.3)

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.30

BEGIN failed--compilation aborted

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.28

Can't locate mykura.pm in @inc (you may need to install the mykura module) (@inc contains: ./t/lib /home/runner/work/kura/kura/blib/arch /home/runner/work/kura/kura/blib/lib /home/runner/work/kura/kura/local/lib/perl5 /home/runner/work/kura/kura/local/lib/perl5/x86_64-linux /home/runner/work/_actions/shogo82148/actions-setup-perl/v1/scripts/lib /opt/hostedtoolcache/perl/5.28.3/x64/lib/site_perl/5.28.3/x86_64-linux /opt/hostedtoolcache/perl/5.28.3/x64/lib/site_perl/5.28.3 /opt/hostedtoolcache/perl/5.28.3/x64/lib/5.28.3/x86_64-linux /opt/hostedtoolcache/perl/5.28.3/x64/lib/5.28.3)

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.28

BEGIN failed--compilation aborted

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.26

Can't locate mykura.pm in @inc (you may need to install the mykura module) (@inc contains: ./t/lib /home/runner/work/kura/kura/blib/arch /home/runner/work/kura/kura/blib/lib /home/runner/work/kura/kura/local/lib/perl5 /home/runner/work/kura/kura/local/lib/perl5/x86_64-linux /home/runner/work/_actions/shogo82148/actions-setup-perl/v1/scripts/lib /opt/hostedtoolcache/perl/5.26.3/x64/lib/site_perl/5.26.3/x86_64-linux /opt/hostedtoolcache/perl/5.26.3/x64/lib/site_perl/5.26.3 /opt/hostedtoolcache/perl/5.26.3/x64/lib/5.26.3/x86_64-linux /opt/hostedtoolcache/perl/5.26.3/x64/lib/5.26.3)

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.26

BEGIN failed--compilation aborted

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.20

Can't locate mykura.pm in @inc (you may need to install the mykura module) (@inc contains: ./t/lib /home/runner/work/kura/kura/blib/arch /home/runner/work/kura/kura/blib/lib /home/runner/work/kura/kura/local/lib/perl5 /home/runner/work/kura/kura/local/lib/perl5/x86_64-linux /home/runner/work/_actions/shogo82148/actions-setup-perl/v1/scripts/lib /opt/hostedtoolcache/perl/5.20.3/x64/lib/site_perl/5.20.3/x86_64-linux /opt/hostedtoolcache/perl/5.20.3/x64/lib/site_perl/5.20.3 /opt/hostedtoolcache/perl/5.20.3/x64/lib/5.20.3/x86_64-linux /opt/hostedtoolcache/perl/5.20.3/x64/lib/5.20.3 .)

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.20

BEGIN failed--compilation aborted

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.18

Can't locate mykura.pm in @inc (you may need to install the mykura module) (@inc contains: ./t/lib /home/runner/work/kura/kura/blib/arch /home/runner/work/kura/kura/blib/lib /home/runner/work/kura/kura/local/lib/perl5 /home/runner/work/kura/kura/local/lib/perl5/x86_64-linux /home/runner/work/_actions/shogo82148/actions-setup-perl/v1/scripts/lib /opt/hostedtoolcache/perl/5.18.4/x64/lib/site_perl/5.18.4/x86_64-linux /opt/hostedtoolcache/perl/5.18.4/x64/lib/site_perl/5.18.4 /opt/hostedtoolcache/perl/5.18.4/x64/lib/5.18.4/x86_64-linux /opt/hostedtoolcache/perl/5.18.4/x64/lib/5.18.4 .)

Check failure on line 8 in t/02-import_into.t

View workflow job for this annotation

GitHub Actions / Perl 5.18

BEGIN failed--compilation aborted

# MyKura customize the name of the checker
isa_ok MyFoo, 'MyChecker';
Expand Down
2 changes: 1 addition & 1 deletion t/10-integration/Exporter-Tiny.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use FindBin qw($Bin);;
use lib "$Bin/Exporter-Tiny";

subtest 'Test `kura` with Exporter::Tiny' => sub {
use mystore Foo => sub { $_ eq 'foo' };
use mykura Foo => sub { $_ eq 'foo' };

isa_ok __PACKAGE__, 'Exporter::Tiny';

Expand Down
2 changes: 1 addition & 1 deletion t/10-integration/Exporter-Tiny/MyFoo.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package MyFoo;

use mystore Foo => sub { $_ eq 'foo' };
use mykura Foo => sub { $_ eq 'foo' };

1;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mystore;
package mykura;
use strict;
use warnings;

Expand Down
2 changes: 2 additions & 0 deletions t/99-synopsis.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use Test2::V0;
use Test2::Require::Module 'Type::Tiny', '2.000000';
use Test2::Require::Module 'Data::Checks', '0.09';
use Test2::Require::Module 'Moose', '2.2207';

package MyFoo {
use Data::Checks qw(StrEq);
Expand Down
2 changes: 1 addition & 1 deletion t/lib/MyKura.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package MyKura;
package mykura;
use strict;
use warnings;

Expand Down

0 comments on commit 9e1bbe3

Please sign in to comment.