File: Bugs.pm

package info (click to toggle)
libchi-perl 0.58-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 660 kB
  • ctags: 421
  • sloc: perl: 5,496; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package CHI::t::Bugs;
{
  $CHI::t::Bugs::VERSION = '0.58';
}
use strict;
use warnings;
use CHI::Test;
use File::Temp qw(tempdir);
use base qw(CHI::Test::Class);

# A place for testing obscure bug fixes. When possible, test will be named for RT ticket.

sub test_48998 : Tests {
    my $cache = CHI->new( driver => 'Memory', global => 1 );
    $cache->set( 'a', 5 );
    $cache->set( 'b', 6 );
    eval { die "bleah" };
    $DB::single = 1;
    cmp_deeply( $cache->get_multi_arrayref( [ 'a', 'b' ] ),
        [ 5, 6 ], "get_multi" );
}

1;