MCPcopy
hub / github.com/pyodide/pyodide / check_expected_js_docs

Function check_expected_js_docs

tools/check_documented_functions.py:37–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def 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
60def parse_args():

Callers 1

mainFunction · 0.85

Calls 2

check_listFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…