App-KGB
view release on metacpan or search on metacpan
t/50-client.t view on Meta::CPAN
#br_mod_re_swap => $br_mod_re_swap,
#ignore_branch => $ignore_branch,
repo_path => $repo,
revision => 1,
}
]
);
my $commit = $c->describe_commit;
my $me = getpwuid($>);
is( $commit->id, 1 );
is( $commit->log, 'add file' );
diag "\$>=$> \$<=$< \$ENV{USER}=$ENV{USER} getpwuid(\$>)=$me";
is( $commit->author, $me );
is( scalar @{ $commit->changes }, 1 );
my $change = $commit->changes->[0];
is( $change->path, '/file' );
ok( not $change->prop_change );
is( $change->action, 'A' );
$c->revision(2);
$c->_called(0);
t/TestBot.pm view on Meta::CPAN
use File::Spec;
use POSIX qw(SIGTERM);
use Socket;
use Symbol;
use base 'Class::Accessor::Fast';
__PACKAGE__->mk_accessors(
qw( dir pid_file output_file addr port client_config_file )
);
my @info = getpwnam( $ENV{USER} = getpwuid($>) );
our $USER = $info[0];
( our $USER_NAME = $info[6] ) =~ s/,.*//;
our $COMMIT_USER
= $USER_NAME
? "06${USER_NAME} (06${USER})"
: "06${USER} (06${USER})";
( run in 0.290 second using v1.01-cache-2.11-cpan-8d75d55dd25 )