()
| 112 | return chunks |
| 113 | |
| 114 | def 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 | |
| 123 | if __name__ == '__main__': |
| 124 | test_split_python_code() |
no test coverage detected