(output)
| 481 | |
| 482 | |
| 483 | def extract_token_hints(output): |
| 484 | hints = [] |
| 485 | for line in output.splitlines(): |
| 486 | if "token" not in line.lower(): |
| 487 | continue |
| 488 | for pattern in TOKEN_PATTERNS: |
| 489 | if pattern.search(line): |
| 490 | hints.append(line.strip()) |
| 491 | break |
| 492 | # Deduplicate while preserving order; cap so the report stays readable. |
| 493 | seen = set() |
| 494 | unique = [] |
| 495 | for hint in hints: |
| 496 | if hint not in seen: |
| 497 | seen.add(hint) |
| 498 | unique.append(hint) |
| 499 | return unique[:10] |
| 500 | |
| 501 | |
| 502 | def assertion_applies_to_real_model(assertion): |
no test coverage detected