File: 003_can.t

package info (click to toggle)
libfile-util-perl 4.201720-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 840 kB
  • sloc: perl: 4,353; makefile: 2
file content (59 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

use strict;
use warnings;

use Test::More tests => 41;
use Test::NoWarnings;

# load your module...
use lib './lib';
use File::Util;

my $ftl = File::Util->new();

# check to see if non-autoloaded File::Util methods are can-able ;O)
map { ok( ref( $ftl->can( $_ ) ) eq 'CODE', "can $_" ) } qw
   (
      _dropdots
      _release
      _seize
      atomize_path
      bitmask
      can_flock
      can_read
      can_write
      created
      diagnostic
      ebcdic
      escape_filename
      existent
      file_type
      isbin
      is_bin
      is_readable
      is_writable
      last_access
      last_modified
      line_count
      list_dir
      load_dir
      load_file
      flock_rules
      make_dir
      abort_depth
      needs_binmode
      new
      open_handle
      readlimit
      read_limit
      size
      strip_path
      trunc
      use_flock
      write_file
      valid_filename
      VERSION
      DESTROY
   );

exit;