Debian Codegraph @

t/unit/Test2/Harness/Util/File/Value.t

raw
1 use Test2::Bundle::Extended -target => 'Test2::Harness::Util::File::Value';
2 # HARNESS-DURATION-SHORT
3
4 use ok $CLASS;
5
6 isa_ok($CLASS, 'Test2::Harness::Util::File');
7
8 my $one = $CLASS->new(name => __FILE__);
9
10 my $val = $one->read;
11 chomp(my $no_tail = $val);
12 is($val, $no_tail, "trailing newline was removed from the value");
13
14 $val = $one->read_line;
15 is(
16 $val,
17 "use Test2::Bundle::Extended -target => 'Test2::Harness::Util::File::Value';",
18 "got line, no newline"
19 );
20
21 done_testing;