From d92becf4fc432c35a0755d5d6900434a3308ac79 Mon Sep 17 00:00:00 2001 From: kobaken Date: Sun, 18 Aug 2024 20:05:12 +0900 Subject: [PATCH] refactor --- t/02-import_into.t | 2 +- t/10-integration/Exporter-Tiny.t | 2 +- t/10-integration/Exporter-Tiny/MyFoo.pm | 2 +- t/10-integration/Exporter-Tiny/{mystore.pm => mykura.pm} | 2 +- t/lib/MyKura.pm | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename t/10-integration/Exporter-Tiny/{mystore.pm => mykura.pm} (91%) diff --git a/t/02-import_into.t b/t/02-import_into.t index 4af7e5f..2a80424 100644 --- a/t/02-import_into.t +++ b/t/02-import_into.t @@ -4,7 +4,7 @@ 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; # MyKura customize the name of the checker isa_ok MyFoo, 'MyChecker'; diff --git a/t/10-integration/Exporter-Tiny.t b/t/10-integration/Exporter-Tiny.t index c598659..e468f93 100644 --- a/t/10-integration/Exporter-Tiny.t +++ b/t/10-integration/Exporter-Tiny.t @@ -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'; diff --git a/t/10-integration/Exporter-Tiny/MyFoo.pm b/t/10-integration/Exporter-Tiny/MyFoo.pm index db5ad17..9e33af3 100644 --- a/t/10-integration/Exporter-Tiny/MyFoo.pm +++ b/t/10-integration/Exporter-Tiny/MyFoo.pm @@ -1,5 +1,5 @@ package MyFoo; -use mystore Foo => sub { $_ eq 'foo' }; +use mykura Foo => sub { $_ eq 'foo' }; 1; diff --git a/t/10-integration/Exporter-Tiny/mystore.pm b/t/10-integration/Exporter-Tiny/mykura.pm similarity index 91% rename from t/10-integration/Exporter-Tiny/mystore.pm rename to t/10-integration/Exporter-Tiny/mykura.pm index 4db58af..e251eed 100644 --- a/t/10-integration/Exporter-Tiny/mystore.pm +++ b/t/10-integration/Exporter-Tiny/mykura.pm @@ -1,4 +1,4 @@ -package mystore; +package mykura; use strict; use warnings; diff --git a/t/lib/MyKura.pm b/t/lib/MyKura.pm index faf91aa..9961c83 100644 --- a/t/lib/MyKura.pm +++ b/t/lib/MyKura.pm @@ -1,4 +1,4 @@ -package MyKura; +package mykura; use strict; use warnings;