CoolFace
Apppublic

CintraAI/code-chunker

sourceHugging Facemitupdated 1y agoView on Hugging Face
5likes
test_php.py16 linesDownload Raw Back to tests
1import unittest2from test_base import BaseChunkerTest3from Chunker import CodeChunker4 5class TestCodeChunkerPHP(BaseChunkerTest):6    def setUp(self):7        super().setUp()8        self.code_chunker = CodeChunker(file_extension='php')9 10    def test_chunk_php_code(self):11        php_code = self.mock_codebase['example.php']12        chunks, _ = self.run_chunker_test(php_code)13        self.assertGreater(len(chunks), 1)  # Ensure the code is actually chunked14 15if __name__ == '__main__':16    unittest.main()