MCPcopy Create free account
hub / github.com/InternLM/HuixiangDou / test_split_python_code

Function test_split_python_code

unittest/primitive/test_splitter.py:114–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 return chunks
113
114def test_split_python_code():
115 path = "huixiangdou/main.py"
116 with open(path) as f:
117 content = f.read()
118
119 chunks = split_python_code(filepath=path, text=content, metadata={"test": "meta"})
120 for chunk in chunks:
121 print(chunk)
122
123if __name__ == '__main__':
124 test_split_python_code()

Callers 1

test_splitter.pyFile · 0.85

Calls 2

split_python_codeFunction · 0.90
readMethod · 0.80

Tested by

no test coverage detected