repo.or.cz
/
VCS-Git-Torrent.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Test script to transfer data over GTP without a tracker
[VCS-Git-Torrent.git]
/
t
/
MockStream.pm
blob
7dc48725b90ebb0ba46d8b9f74dbb4ff5db6c96b
1
2
package
MockStream
;
3
use
Test
::
Depends
qw(IO::String)
;
4
use
IO
::
String
;
5
6
use
base
qw(Exporter)
;
7
BEGIN
{
our
@EXPORT
=
qw(stream)
};
8
9
sub
stream
($) {
10
my
$string
=
shift
;
11
IO
::
String
->
new
(
\
$string
);
12
}
13
14
1
;