Coverage for src/app/services/add_chunks_service.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.7.0, created at 2025-04-03 00:42 +0200

1from models.file_chunk_model import FileChunkModel 

2from ports.add_chunks_port import AddChunksPort 

3 

4class AddChunksService: 

5 

6 def __init__(self, add_chunks_port: AddChunksPort ): 

7 self.add_chunks_port = add_chunks_port 

8 

9 

10 def load_chunks(self, chunks: list[FileChunkModel]): 

11 try: 

12 self.add_chunks_port.load_chunks(chunks) 

13 except Exception as e: 

14 raise e 

15