Port details on branch 2022Q3 |
- p5-Test-Mock-LWP-Dispatch Mocks LWP::UserAgent and dispatches your requests/responses
- 0.08 devel =0 0.08Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2012-04-30 03:12:17
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Test-Mock-LWP-Dispatch
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Test-Mock-LWP-Dispatch>0:devel/p5-Test-Mock-LWP-Dispatch
- To install the port:
- cd /usr/ports/devel/p5-Test-Mock-LWP-Dispatch/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Test-Mock-LWP-Dispatch
- pkg install p5-Test-Mock-LWP-Dispatch
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Test-Mock-LWP-Dispatch
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Test-Mock-LWP-Dispatch-0.08.tar.gz) = 134bb2df2bf2e14c3e86d0d6887081140d9605f66054dc5b733e4e7c42f5b56c
SIZE (Test-Mock-LWP-Dispatch-0.08.tar.gz) = 13634
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-HTTP-Message>=0 : www/p5-HTTP-Message
- p5-Test-MockObject>=0 : devel/p5-Test-MockObject
- p5-libwww>=0 : www/p5-libwww
- perl5>=5.32.r0<5.33 : lang/perl5.32
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-HTTP-Message>=0 : www/p5-HTTP-Message
- p5-Test-MockObject>=0 : devel/p5-Test-MockObject
- p5-libwww>=0 : www/p5-libwww
- perl5>=5.32.r0<5.33 : lang/perl5.32
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Test-Mock-LWP-Dispatch
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|