Debian Codegraph @

t/12open-empty-file.t

raw symbols SCIP
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use Test::More tests => 1;
7 use File::Spec;
8
9 use Config::IniFiles;
10
11 use lib "./t/lib";
12
13 use Config::IniFiles::TestPaths;
14
15 my $filename = t_file("empty.ini");
16
17 {
18 my $cfg = Config::IniFiles->new;
19 $cfg->WriteConfig($filename);
20 }
21
22 {
23 my $cfg = Config::IniFiles->new( -file => $filename, -allowempty => 1 );
24
25 # TEST
26 isa_ok( $cfg, "Config::IniFiles", '$cfg' );
27 }
28
29 t_unlink("empty.ini");