Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.543 kb
use strict;
use Test::More tests => 5;
use LWP::UserAgent::WithCache;
{
my $ua = LWP::UserAgent::WithCache->new(namespace => 'other_cache_namespace', timeout => 99);
is $ua->{cache}->get_namespace, 'other_cache_namespace';
is $ua->timeout, 99;
}
{
my $ua = LWP::UserAgent::WithCache->new({namespace => 'other_cache_namespace'}, timeout => 99);
is $ua->{cache}->get_namespace, 'other_cache_namespace';
is $ua->timeout, 99;
}
{
my $ua = LWP::UserAgent::WithCache->new(agent => 'Web::Scraper');
is $ua->{cache}->get_namespace, 'lwp-cache';
}
Jump to Line
Something went wrong with that request. Please try again.