File: 36-refspec.t

package info (click to toggle)
libgit-raw-perl 0.90%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,456 kB
  • sloc: perl: 5,426; ansic: 182; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!perl

use Test::More;

use Git::Raw;

my $refspec = Git::Raw::RefSpec -> parse ("+refs/heads/*:refs/remotes/origin/*", 1);
isa_ok $refspec, "Git::Raw::RefSpec";

is $refspec -> src, "refs/heads/*";
is $refspec -> dst, "refs/remotes/origin/*";
is $refspec -> direction, "fetch";
is $refspec -> string, "+refs/heads/*:refs/remotes/origin/*";
is $refspec -> is_force, 1;

done_testing;