File: null.t

package info (click to toggle)
libcache-ref-perl 0.04-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: perl: 2,010; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use strict;
use warnings;

use Test::More;

use ok 'Cache::Ref::Null';

my $cache = Cache::Ref::Null->new;

is( $cache->get("foo"), undef, "no value for get" );
$cache->set("foo" => 42);
is( $cache->get("foo"), undef, "no value for after set" );

done_testing;

# ex: set sw=4 et: