()
| 35 | |
| 36 | |
| 37 | def check_expected_js_docs(): |
| 38 | expected_lines = EXPECTED_DOCS_FILE.read_text().splitlines() |
| 39 | new_lines = check_list() |
| 40 | new_lines.pop() |
| 41 | diffs = list( |
| 42 | difflib.unified_diff( |
| 43 | expected_lines, |
| 44 | new_lines, |
| 45 | fromfile="old expected_js_docs.txt", |
| 46 | tofile="new expected_js_docs.txt", |
| 47 | ) |
| 48 | ) |
| 49 | if not diffs: |
| 50 | print("No changes") |
| 51 | return 0 |
| 52 | print( |
| 53 | "Set of documented APIs changed. If this is intended, run ./tools/check_documented_functions.py --update" |
| 54 | ) |
| 55 | for l in diffs: |
| 56 | print(l) |
| 57 | return 1 |
| 58 | |
| 59 | |
| 60 | def parse_args(): |
no test coverage detected
searching dependent graphs…