File: refcount.t

package info (click to toggle)
cipux 3.4.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 316 kB
  • ctags: 59
  • sloc: perl: 1,064; makefile: 13
file content (13 lines) | stat: -rw-r--r-- 227 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More tests => 2;
use Test::Refcount;

use CipUX;

my $object = CipUX->new();

is_oneref( $object, '$object has a refcount of 1' );

my $otherref = $object;

is_refcount( $object, 2, '$object now has 2 references' );