File: 01-instiantied_object_only_methods.t

package info (click to toggle)
libproc-processtable-perl 0.637-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 672 kB
  • sloc: ansic: 5,765; perl: 568; makefile: 15
file content (22 lines) | stat: -rw-r--r-- 560 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
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.pl'

use strict;
use Test::More;
BEGIN { plan tests => 2 }

# check wether ProcProcessTable is there

use Proc::ProcessTable;

eval {
    Proc::ProcessTable->fields;
};
like( $@, qr/Must call fields from an initalized object created with new.*/, 'Uninitialized object 1' );

eval {
    Proc::ProcessTable->table;
};
like( $@, qr/Must call table from an initalized object created with new.*/, 'Uninitialized object 2' );