Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new function: get_full_functions
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use strict; | ||
use warnings; | ||
use utf8; | ||
use Test::More; | ||
use lib 't/lib/'; | ||
use Bar; | ||
use Module::Functions qw/get_full_functions/; | ||
|
||
is_deeply( | ||
[ sort( get_full_functions('Bar') ) ], | ||
[qw/BEGIN EXPORT ISA _barbar bar catfile import/] | ||
); | ||
|
||
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,14 @@ | ||
package Bar; | ||
use strict; | ||
use warnings; | ||
use utf8; | ||
use parent qw/Exporter/; | ||
|
||
use File::Spec::Functions qw/catfile/; | ||
|
||
sub bar { '5963' } | ||
|
||
sub _barbar { '0843' } | ||
|
||
1; | ||
|