curl-library
[PATCH] Add getall() for convsrctest.pl
From: Colin Hogben <curl_at_pythontech.co.uk>
Date: Wed, 28 Dec 2011 09:13:16 +0000
Date: Wed, 28 Dec 2011 09:13:16 +0000
Add function getall to return entire test document, to allow
manipulation by convsrctest.pl
--- tests/getpart.pm | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tests/getpart.pm b/tests/getpart.pm index 83e56ca..61aadb0 100644 --- a/tests/getpart.pm +++ b/tests/getpart.pm @@ -124,6 +124,11 @@ sub getpart { return @this; #empty! } +/* Return entire document as list of lines */ +sub getall { + return @xml; +} + sub loadtest { my ($file)=@_; -- 1.6.5.6 --------------070105000704020407080908 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html --------------070105000704020407080908--Received on 2001-09-17