Coverage for navigaattori/api.py: 100.00%

9 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-02-04 20:46:10 +00:00

1import pathlib 

2from typing import Union, no_type_check 

3 

4from navigaattori.structures import Structures 

5 

6 

7@no_type_check 

8def explore(doc_root: Union[str, pathlib.Path], options: dict[str, bool]) -> tuple[int, object]: 

9 """Later alligator.""" 

10 structures = Structures(doc_root, options=options) 

11 if structures.is_valid(): 

12 return 0, structures.container() 

13 

14 return structures.code_details()