File: refcount.t

package info (click to toggle)
libticket-simple-perl 0.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 172 kB
  • ctags: 14
  • sloc: perl: 397; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 245 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 Ticket::Simple;

my $object = Ticket::Simple->new();

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

my $otherref = $object;

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