{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":["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"],"categories":["devel","perl5"],"comment":"Mocks LWP::UserAgent and dispatches your requests/responses","compare":null,"dependentCount":null,"description":"Test::Mock::LWP::Dispatch intends for testing a code that heavily uses\nLWP::UserAgent.\n\nAssume that function you want to test makes three different request to the\nserver and expects to get some content from the server. To test this function\nyou should setup request/response mappings for mocked UserAgent and test it.\n\nFor doing something with mappings, here are methods map, unmap and unmap_all.\nFor controlling context of these mappings (is it applies for all created in your\ncode LWP::UserAgent's or only to one specific?) you should call these functions\nfor exported $mock_ua object (global mapping) or for newly created\nLWP::UserAgent (local mappings).\n\nSee also on Test::Mock::LWP, it provides mocked LWP objects for you, so probably\nyou can solve your problems with this module too.","flavors":[],"html":"https://daemonports.org/devel/p5-Test-Mock-LWP-Dispatch/","kind":"port","lastUpdate":null,"license":["ART10","GPLv1+"],"maintainer":"sunpoet@FreeBSD.org","name":"p5-Test-Mock-LWP-Dispatch","newest":true,"newestVersion":"0.08","noVulnData":false,"origin":"devel/p5-Test-Mock-LWP-Dispatch","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/p5-Test-Mock-LWP-Dispatch","path":"/dragonfly/devel/p5-Test-Mock-LWP-Dispatch/","system":"DragonFly","version":"0.08"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Test-Mock-LWP-Dispatch","path":"","system":"HardenedBSD","version":"0.08"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Test-Mock-LWP-Dispatch","path":"","system":"GhostBSD","version":"0.08"}],"packages":[{"repo":"FreeBSD:14:latest","versions":["0.08","0.08","0.08","0.08","0.08"]},{"repo":"FreeBSD:14:quarterly","versions":["0.08","0.08","n/a","0.08","0.08"]},{"repo":"FreeBSD:15:latest","versions":["0.08","0.08","n/a","0.08","0.08"]},{"repo":"FreeBSD:15:quarterly","versions":["0.08","0.08","n/a","n/a","n/a"]},{"repo":"FreeBSD:16:latest","versions":["0.08","0.08","n/a","n/a","n/a"]},{"repo":"FreeBSD:16:quarterly","versions":["n/a","n/a","n/a","n/a","n/a"]}],"pkgName":"p5-Test-Mock-LWP-Dispatch-0.08","related":null,"repository":"FreeBSD ports","requiredBy":[],"requiredByCount":0,"runDepends":["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"],"status":null,"system":"freebsd","systemLabel":"FreeBSD","version":"0.08","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/Test-Mock-LWP-Dispatch"}
