NAME
DDG::Test::Location - Gives functions for getting test DDG::Location objects.
VERSION
version 1018
DESCRIPTION
Installs functions for getting test locations.
Warning: Be aware that you only use this module inside your test files in t/.
EXPORTS FUNCTIONS
test_location
Gives back an example DDG::Location defined by the first parameter. Possible values are us, de, in and my.
test_location_by_env
Will give back a DDG::Location like </test_location> but will take the location definition by the ENV variable DDG_TEST_LOCATION. If none is given then us will be assumed. App::DuckPAN is also using this function for getting the location for the sample requests, so you can set another location with prefixing your startup of server or query with the ENV variable:
DDG_TEST_LOCATION=de duckpan server
AUTHOR
DuckDuckGo <open@duckduckgo.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by DuckDuckGo, Inc. https://duckduckgo.com/.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004