(len1 int, len2 int, limit int)
| 185 | } |
| 186 | |
| 187 | func compareLengths(len1 int, len2 int, limit int) bool { |
| 188 | |
| 189 | var diff int |
| 190 | if len1 >= len2 { |
| 191 | diff = len1 - len2 |
| 192 | } else { |
| 193 | diff = len2 - len1 |
| 194 | } |
| 195 | |
| 196 | return diff > limit |
| 197 | } |
| 198 | |
| 199 | /* Check if the second response makes sense or the continuation shall be stopped. Stop if body, status code and headers are equal to the default response */ |
| 200 | func stopContinuation(body []byte, statusCode int, headers map[string][]string) bool { |
no outgoing calls
no test coverage detected