File: 011Bugs.t

package info (click to toggle)
librrdtool-oo-perl 0.36-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 316 kB
  • sloc: perl: 1,052; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use Test::More qw(no_plan);
use RRDTool::OO;

my $aref = [
    step        => 1,
    data_source => { name      => "mydatasource",
                     type      => "GAUGE" },
    archive => { rows => 30 }
];

my $rrd = RRDTool::OO->new( file => "foo" );
$rrd->create( @{ $aref } );

ok !exists $aref->[5]->{ cfunc }, "input parameter not overwritten";

unlink "foo";