FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

I am looking for an LTO tape library. Do you have one to spare?
Port details
p5-Test-Mock-LWP-Dispatch Mocks LWP::UserAgent and dispatches your requests/responses
0.06_1 devel on this many watch lists=0 search for ports that depend on this port
Maintained by: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 30 Apr 2012 03:12:17
Also Listed In: perl5
License: ART10 GPLv1
Test::Mock::LWP::Dispatch intends for testing a code that heavily uses
LWP::UserAgent.

Assume that function you want to test makes three different request to the
server and expects to get some content from the server. To test this function
you should setup request/response mappings for mocked UserAgent and test it.

For doing something with mappings, here are methods map, unmap and unmap_all.
For controlling context of these mappings (is it applies for all created in your
code LWP::UserAgent's or only to one specific?) you should call these functions
for exported $mock_ua object (global mapping) or for newly created
LWP::UserAgent (local mappings).

See also on Test::Mock::LWP, it provides mocked LWP objects for you, so probably
you can solve your problems with this module too.

WWW: http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/
SVNWeb : Main Web Site : Distfiles Availability : PortsMon

NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.

Required To Build:
  1. www/p5-HTTP-Message
  2. devel/p5-Test-MockObject
  3. www/p5-libwww
  4. lang/perl5.18
Required To Run:
  1. www/p5-HTTP-Message
  2. devel/p5-Test-MockObject
  3. www/p5-libwww
  4. lang/perl5.18
There are no ports dependent upon this port

To install the port: cd /usr/ports/devel/p5-Test-Mock-LWP-Dispatch/ && make install clean
To add the package: pkg install devel/p5-Test-Mock-LWP-Dispatch


Configuration Options
     No options to configure

Master Sites:
  1. ftp://ftp.auckland.ac.nz/pub/perl/CPAN/modules/by-module/Test/
  2. ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Test/
  3. ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Test/
  4. ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Test/
  5. ftp://ftp.kddlabs.co.jp/lang/perl/CPAN/modules/by-module/Test/
  6. ftp://ftp.mirrorservice.org/sites/cpan.perl.org/CPAN/modules/by-module/Test/
  7. ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/Test/
  8. http://backpan.perl.org/modules/by-module/Test/
  9. http://cpan.metacpan.org/modules/by-module/Test/
  10. http://distcache.FreeBSD.org/ports-distfiles/
  11. http://ftp.jaist.ac.jp/pub/CPAN/modules/by-module/Test/
  12. http://ftp.twaren.net/Unix/Lang/CPAN/modules/by-module/Test/
  13. http://www.cpan.dk/modules/by-module/Test/
  14. http://www.cpan.dk/modules/by-module/Test/
  15. http://www.cpan.org/modules/by-module/Test/

Number of commits found: 8

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
26 Nov 2014 13:08:38
Original commit files touched by this commit  0.06_1
Revision:373448
mat search for other commits by this committer
Change the way Perl modules are installed, update the default Perl to 5.18.

Before, we had:

  site_perl :           lib/perl5/site_perl/5.18
  site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
  perl_man3 :           lib/perl5/5.18/man/man3

Now we have:

  site_perl : lib/perl5/site_perl
  site_arch : lib/perl5/site_perl/mach/5.18
  perl_man3 : lib/perl5/site_perl/man/man3

Modules without any .so will be installed at the same place regardless of the
(Only the first 15 lines of the commit message are shown above View all of this commit message)
27 Oct 2014 10:55:59
Original commit files touched by this commit  0.06
Revision:371547
bapt search for other commits by this committer
Cleanup plist
30 Sep 2013 20:41:25
Original commit files touched by this commit  0.06
Revision:328870
sunpoet search for other commits by this committer
- Support STAGEDIR
20 Sep 2013 17:13:47
Original commit files touched by this commit  0.06
Revision:327724
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
devel part 3)
21 Aug 2013 14:08:08
Original commit files touched by this commit  0.06
Revision:325134
sunpoet search for other commits by this committer
- Convert to new perl framework
08 Jun 2013 21:04:22
Original commit files touched by this commit  0.06
Revision:320287
sunpoet search for other commits by this committer
- Update to 0.06

Changes:	http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/Changes
16 Apr 2013 16:54:56
Original commit files touched by this commit  0.05
Revision:315850
sunpoet search for other commits by this committer
- Update to 0.05
- Add LICENSE
- Cleanup Makefile header

Changes:	http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/Changes
Feature safe:	yes
30 Apr 2012 03:10:50
Original commit files touched by this commit  0.03
sunpoet search for other commits by this committer
- Add p5-Test-Mock-LWP-Dispatch 0.03

Test::Mock::LWP::Dispatch intends for testing a code that heavily uses
LWP::UserAgent.

Assume that function you want to test makes three different request to the
server and expects to get some content from the server. To test this function
you should setup request/response mappings for mocked UserAgent and test it.

For doing something with mappings, here are methods map, unmap and unmap_all.
For controlling context of these mappings (is it applies for all created in your
code LWP::UserAgent's or only to one specific?) you should call these functions
for exported $mock_ua object (global mapping) or for newly created
LWP::UserAgent (local mappings).

See also on Test::Mock::LWP, it provides mocked LWP objects for you, so probably
you can solve your problems with this module too.

WWW: http://search.cpan.org/dist/Test-Mock-LWP-Dispatch/

Number of commits found: 8

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
ntpDec 20
ntp-develDec 20
gitDec 19
otrsDec 16
mod_dav_svnDec 15
subversionDec 15
subversion16Dec 15
subversion17Dec 15
nvidia-driverDec 14
nvidia-driver-173Dec 14
nvidia-driver-304Dec 14
asterisk11Dec 11
bind99Dec 11
xorg-serverDec 10
unboundDec 09

10 vulnerabilities affecting 27 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 24434
Broken 144
Deprecated 70
Ignore 397
Forbidden 2
Restricted 207
No CDROM 93
Vulnerable 19
Expired 0
Set to expire 65
Interactive 0
new 24 hours 3
new 48 hours3
new 7 days25
new fortnight41
new month134

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.