/[Search-Estraier]/trunk/t/5_Node.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/t/5_Node.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations)
Thu Jan 5 15:38:34 2006 UTC (18 years, 1 month ago) by dpavlin
File MIME type: application/x-troff
File size: 658 byte(s)
status
1 #!/usr/bin/perl -w
2
3 use strict;
4 use blib;
5
6 use Test::More tests => 10;
7 use Test::Exception;
8 use Data::Dumper;
9
10 BEGIN { use_ok('Search::Estraier') };
11
12 ok(my $node = new Search::Estraier::Node, 'new');
13 isa_ok($node, 'Search::Estraier::Node');
14
15 ok($node->set_url('http://localhost:1978/'), 'set_url');
16
17 ok($node->set_proxy('proxy.example.com', 8080), 'set_proxy');
18 throws_ok {$node->set_proxy('proxy.example.com', 'foo') } qr/port/, 'set_proxy port NaN';
19
20 ok($node->set_timeout(42), 'set_timeout');
21 throws_ok {$node->set_timeout('foo') } qr/timeout/, 'set_timeout NaN';
22
23 ok($node->set_auth('foo','bar'), 'set_auth');
24
25 cmp_ok($node->status, '==', -1, 'status');

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26