- EXPORTS FUNCTIONS
- COPYRIGHT AND LICENSE
DDG::Test::Location - Gives functions for getting test DDG::Location objects.
Installs functions for getting test locations.
Warning: Be aware that you only use this module inside your test files in t/.
Gives back an example DDG::Location defined by the first parameter. Possible values are us, de, in and my.
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
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