| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<noscript> |
| 5 |
<meta http-equiv="refresh" content="0; url=${to_uri}" /> |
| 6 |
</noscript> |
| 7 |
<script> |
| 8 |
var target = "${to_uri}"; |
| 9 |
|
| 10 |
var manualRedirects = { |
| 11 |
"details.html#thread-safety-policy": "supported.html#thread-safety-policy", |
| 12 |
"details.html#hypothesis.given": "reference/api.html#hypothesis.given", |
| 13 |
"details.html#targeted-example-generation": "reference/api.html#targeted-property-based-testing", |
| 14 |
"details.html#custom-function-execution": "reference/api.html#custom-function-execution", |
| 15 |
"details.html#type-annotations-in-hypothesis": "how-to/type-strategies.html", |
| 16 |
"details.html#the-hypothesis-pytest-plugin": "reference/integrations.html#the-hypothesis-pytest-plugin", |
| 17 |
"details.html#use-with-external-fuzzers": "reference/api.html#use-with-external-fuzzers", |
| 18 |
"details.html#making-assumptions": "reference/api.html#hypothesis.assume", |
| 19 |
"details.html#hypothesis.event": "reference/api.html#hypothesis.event", |
| 20 |
"details.html#hypothesis.assume": "reference/api.html#hypothesis.assume", |
| 21 |
"details.html#hypothesis.given": "reference/api.html#hypothesis.given", |
| 22 |
"details.html#hypothesis.target": "reference/api.html#hypothesis.target", |
| 23 |
"details.html#hypothesis.register_random": "reference/strategies.html#hypothesis.register_random", |
| 24 |
"details.html#hypothesis.strategies.SearchStrategy": "reference/strategies.html#hypothesis.strategies.SearchStrategy", |
| 25 |
"details.html#test-statistics": "reference/integrations.html#statistics", |
| 26 |
}; |
| 27 |
var redirect = manualRedirects[window.location.pathname.split('/').pop() + window.location.hash]; |
| 28 |
|
| 29 |
if (redirect) { |
| 30 |
window.location.replace(redirect); |
| 31 |
} else if (window.location.hash) { |
| 32 |
// if both the requested url and the redirect target have a hash, prefer the requested url hash. |
| 33 |
// This makes a redirect config of {"settings": "api.html#settings"} redirect settings.html#hypothesis.HealthCheck |
| 34 |
// to api.html#hypothesis.HealthCheck instead of api.html#settings. |
| 35 |
window.location.replace(target.split('#')[0] + window.location.hash); |
| 36 |
} else { |
| 37 |
window.location.replace(target); |
| 38 |
} |
| 39 |
</script> |
| 40 |
</head> |
| 41 |
</html> |