#!/usr/local/bin/perl -w =head1 NAME 03dest_branch_diagram.t - testing of VCP::Dest::branch_diagram services =cut use strict ; use Carp ; use Test ; use VCP::Dest::branch_diagram; my $p; my $o; my @options = ( "--repo-id=repo-idfoo", "--db-dir=db-dirfoo", "--skip=skipfoo", ); my @tests = ( sub { $p = VCP::Dest::branch_diagram->new() ; ok ref $p, 'VCP::Dest::branch_diagram'; }, sub { $o = join( " ", map "'$_'", $p->options_as_strings ); ok length $o; }, ( map { my $option = $_; $option =~ s/=.*//; sub { ok 0 <= index( $o, "'#$option" ), 1, $option; }; } @options ), sub { $p->parse_options( [ @options ] ); $o = join( " ", map "'$_'", $p->options_as_strings ); ok length $o; }, ( map { my $option = $_; sub { ok 0 <= index( $o, "'$option'" ), 1, $option; }; } @options ), ) ; plan tests => scalar( @tests ) ; $_->() for @tests ;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 4147 | Barrie Slaymaker | - t/03*.t adapted to new help and config file docs API | ||
#3 | 4146 | Barrie Slaymaker | - Spurious \rs removed from test scripts | ||
#2 | 3489 | Barrie Slaymaker | - Document options emitted to .vcp files. | ||
#1 | 3460 | Barrie Slaymaker |
- Revamp Plugin/Source/Dest hierarchy to allow for reguritating options in to .vcp files |