(path)
| 302 | } |
| 303 | |
| 304 | function randomValue(path) { |
| 305 | const probability = random.random(); |
| 306 | |
| 307 | if (probability < 0.01) { |
| 308 | const randomFunc = randomFunction(path); |
| 309 | if (randomFunc) { |
| 310 | return randomFunc; |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | if (probability < 0.25) { |
| 315 | const randomVar = randomVariable(path); |
| 316 | if (randomVar) { |
| 317 | return randomVar; |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | if (probability < 0.5) { |
| 322 | return randomInterestingNumber(); |
| 323 | } |
| 324 | |
| 325 | if (probability < 0.75) { |
| 326 | return randomInterestingNonNumber(); |
| 327 | } |
| 328 | |
| 329 | return randomObject(); |
| 330 | } |
| 331 | |
| 332 | function callRandomFunction(path, identifier, seed) { |
| 333 | if (seed === undefined) { |
no test coverage detected