-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
use Test::More tests => 4; | ||
|
||
# Module loads | ||
BEGIN { use_ok('Genealogy::ObituaryDailyTimes') } | ||
|
||
# Object creation | ||
my $directory = 'lib/Genealogy/ObituaryDailyTimes/data'; | ||
my $called = 0; | ||
my $logger = sub { $called++ }; | ||
my $obj = Genealogy::ObituaryDailyTimes->new( | ||
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-20.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-22.04
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on macos-latest
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.22 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2019
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2022
Check failure on line 14 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2019
|
||
directory => $directory, | ||
logger => $logger | ||
); | ||
ok($obj, 'Object created successfully'); | ||
|
||
# Method 'search' for mandatory 'last' argument | ||
my $result = $obj->search(last => 'Smith'); | ||
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-20.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on ubuntu-22.04
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on macos-latest
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.28 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.22 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.34 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.36 on windows-2019
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.30 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2022
Check failure on line 21 in t/30-basics.t GitHub Actions / Perl 5.32 on windows-2019
|
||
ok($result, 'Search method works with mandatory "last" argument'); | ||
cmp_ok($called, '>', 0, 'Logger has been called'); |