devel/p5-Test-Mock-LWP-Dispatch 0.08 FreeBSD
Mocks LWP::UserAgent and dispatches your requests/responses
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 14.0 KiB, 48.6 KiB installed
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.
In the other systems
The newest version among them is 0.08, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| FreeBSD | devel/p5-Test-Mock-LWP-Dispatch | 0.08 newest | none known | - | [email protected] | - |
| DragonFly | devel/p5-Test-Mock-LWP-Dispatch | 0.08 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Test-Mock-LWP-Dispatch | 0.08 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Test-Mock-LWP-Dispatch | 0.08 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-Test-Mock-LWP-Dispatch
From the ports tree:
cd /usr/ports/devel/p5-Test-Mock-LWP-Dispatch/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Test-Mock-LWP-Dispatch>0:devel/p5-Test-Mock-LWP-Dispatch
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.08 | 0.08 | 0.08 | 0.08 | 0.08 |
| FreeBSD:14:quarterly | 0.08 | 0.08 | n/a | 0.08 | 0.08 |
| FreeBSD:15:latest | 0.08 | 0.08 | n/a | 0.08 | 0.08 |
| FreeBSD:15:quarterly | 0.08 | 0.08 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.08 | 0.08 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 3
p5-HTTP-Message>=0: www/p5-HTTP-Messagep5-Test-MockObject>=0: devel/p5-Test-MockObjectp5-libwww>=0: www/p5-libwww
Runtime 3
p5-HTTP-Message>=0: www/p5-HTTP-Messagep5-Test-MockObject>=0: devel/p5-Test-MockObjectp5-libwww>=0: www/p5-libwww
Test 2
p5-Moose>=0: devel/p5-Moosep5-Test-Exception>=0: devel/p5-Test-Exception
The full lists below include those, and their dependencies in turn.
Build dependencies 28
- converters/p5-Encode-Locale
- converters/p5-MIME-Base32
- converters/p5-MIME-Base64
- devel/p5-Clone
- devel/p5-IO-HTML
- devel/p5-Test-MockObject
- devel/p5-TimeDate
- devel/p5-UNIVERSAL-can
- devel/p5-UNIVERSAL-isa
- lang/p5-Try-Tiny
- lang/perl5.42
- net/p5-Net-HTTP
- net/p5-URI
- security/p5-Authen-NTLM
- security/p5-Digest-HMAC
- security/p5-IO-Socket-SSL
- security/p5-Net-SSLeay
- sysutils/p5-File-Listing
- www/p5-HTML-Parser
- www/p5-HTML-Tagset
- www/p5-HTTP-Cookies
- www/p5-HTTP-Date
- www/p5-HTTP-Message
- www/p5-HTTP-Negotiate
- www/p5-LWP-MediaTypes
- www/p5-Mozilla-CA
- www/p5-WWW-RobotRules
- www/p5-libwww
Run dependencies 28
- converters/p5-Encode-Locale
- converters/p5-MIME-Base32
- converters/p5-MIME-Base64
- devel/p5-Clone
- devel/p5-IO-HTML
- devel/p5-Test-MockObject
- devel/p5-TimeDate
- devel/p5-UNIVERSAL-can
- devel/p5-UNIVERSAL-isa
- lang/p5-Try-Tiny
- lang/perl5.42
- net/p5-Net-HTTP
- net/p5-URI
- security/p5-Authen-NTLM
- security/p5-Digest-HMAC
- security/p5-IO-Socket-SSL
- security/p5-Net-SSLeay
- sysutils/p5-File-Listing
- www/p5-HTML-Parser
- www/p5-HTML-Tagset
- www/p5-HTTP-Cookies
- www/p5-HTTP-Date
- www/p5-HTTP-Message
- www/p5-HTTP-Negotiate
- www/p5-LWP-MediaTypes
- www/p5-Mozilla-CA
- www/p5-WWW-RobotRules
- www/p5-libwww
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Test/Mock/LWP/Dispatch.pm
- %%PERL5_MAN3%%/Test::Mock::LWP::Dispatch.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Test-Mock-LWP-Dispatch-0.08.tar.gz | 13634 | 134bb2df2bf2e14c3e86d0d6887081140d9605f66054dc5b733e4e7c42f5b56c |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.