| 1 | package Poet::t::App; | ||
| 2 | 1 | $Poet::t::App::VERSION = '0.16'; | |
| 3 | 1 | ▶ | use Test::Class::Most parent => 'Poet::Test::Class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | ▶ | sub test_app_name_to_dir : Tests { |
|
Subroutine
test_app_name_to_dir: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 6 | 1 | require Poet::App::Command::new; | |
| 7 | |||
| 8 | 3 | ▶ | my $try = sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 9 | 3 | return Poet::App::Command::new->app_name_to_dir( $_[0] ); | |
| 10 | 1 | }; | |
| 11 | 1 | is( $try->("FooBar"), "foo_bar" ); | |
| 12 | 1 | is( $try->("HM"), "hm" ); | |
| 13 | 1 | is( $try->("foo_bar"), "foo_bar" ); | |
| 14 | 1 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 1 | 1; | |