| 108 | |
| 109 | |
| 110 | void validateAndSetDefaultValidationEpsilon(const char* caller) { |
| 111 | |
| 112 | // permit unspecified, falling back to the hardcoded precision-specific default |
| 113 | string name = envvar_names::DEFAULT_VALIDATION_EPSILON; |
| 114 | if (!isEnvVarSpecified(name)) |
| 115 | return; |
| 116 | |
| 117 | // otherwise, validate user passed a positive real integer (or zero) |
| 118 | string value = getSpecifiedEnvVarValue(name); |
| 119 | validate_envVarDefaultValidationEpsilon(value, caller); |
| 120 | |
| 121 | // overwrite default env-var value |
| 122 | envvar_values::DEFAULT_VALIDATION_EPSILON = parser_parseReal(value); |
| 123 | } |
| 124 | |
| 125 | |
| 126 |
no test coverage detected