Debian Codegraph @

t/issues/gh-1216/gh-1216.t

raw
1 use strict;
2 use warnings;
3 use lib 't/issues/gh-1216/lib';
4
5 use Test::More 'tests' => 2;
6 use Test::Fatal qw<exception>;
7 use Module::Runtime qw<require_module>;
8
9 my $app;
10 is(
11 exception {
12 require_module('App');
13 $app = App->to_app;
14 },
15 undef,
16 'No exception when creating new app',
17 );
18
19 isa_ok( $app, 'CODE' );