File: File-stat.t

package info (click to toggle)
libperl5i-perl 2.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 996 kB
  • ctags: 343
  • sloc: perl: 6,259; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!perl

use perl5i::latest;
use Test::More 'no_plan';

my $stat = stat("MANIFEST");
isa_ok $stat, "File::stat";
cmp_ok $stat->size, ">", 0;

is_deeply [stat("MANIFEST")],  [CORE::stat("MANIFEST")],  'stat() in array context';
is_deeply [lstat("MANIFEST")], [CORE::lstat("MANIFEST")], 'lstat() in array context';