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 0.06 devel on this many watch lists=0 search for ports that depend on this port
Mocks LWP::UserAgent and dispatches your requests/responses
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 required dependencies information. 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.14
Required To Run:
  1. www/p5-HTTP-Message
  2. devel/p5-Test-MockObject
  3. www/p5-libwww
  4. lang/perl5.14
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.FreeBSD.org/pub/FreeBSD/ports/distfiles/
  2. ftp://ftp.auckland.ac.nz/pub/perl/CPAN/modules/by-module/Test/
  3. ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Test/
  4. ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Test/
  5. ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Test/
  6. ftp://ftp.kddlabs.co.jp/lang/perl/CPAN/modules/by-module/Test/
  7. ftp://ftp.mirrorservice.org/sites/cpan.perl.org/CPAN/modules/by-module/Test/
  8. ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/Test/
  9. http://at.cpan.org/modules/by-module/Test/
  10. http://backpan.perl.org/modules/by-module/Test/
  11. http://cpan.nctu.edu.tw/modules/by-module/Test/
  12. http://ftp.jaist.ac.jp/pub/CPAN/modules/by-module/Test/
  13. http://ftp.twaren.net/Unix/Lang/CPAN/modules/by-module/Test/
  14. http://www.cpan.dk/modules/by-module/Test/
  15. http://www.cpan.dk/modules/by-module/Test/

Number of commits found: 6

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
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: 6

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
i2pJul 28
i2pJul 28
i2pJul 28
bugzilla44Jul 25
apache22Jul 24
apache22-event-mpmJul 24
apache22-itk-mpmJul 24
apache22-peruser-mpmJul 24
apache22-worker-mpmJul 24
firefoxJul 23
firefox-develJul 23
firefox-esrJul 23
firefox10Jul 23
firefox15Jul 23
firefox3Jul 23

11 vulnerabilities affecting 34 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 24400
Broken 181
Deprecated 819
Ignore 516
Forbidden 16
Restricted 263
No CDROM 101
Vulnerable 28
Expired 1
Set to expire 806
Interactive 13
new 24 hours 6
new 48 hours9
new 7 days19
new fortnight41
new month105

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