* test: add regression tests for COCO loader path containment * fix: reject COCO annotations whose file_name escapes the images directory * docs: document ValueError contract in load_coco_annotations * test: cover COCO equality-guard branch (file_name → images dir) * test: cover COCO is_dir-guard branch (file_name → subdirectory) * fix: wrap Path.resolve() for untrusted file_name in try/except * test: add positive test for valid nested file_name in COCO loader * test: add missing docstrings to COCO path-containment tests * test: add `from __future__ import annotations` to JSON and CSV tests * fix: replace `os.path.join` with `Path` for consistent path handling in COCO loader --------- Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Claude Code <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| annotators | ||
| assets | ||
| classification | ||
| dataset | ||
| detection | ||
| draw | ||
| geometry | ||
| key_points | ||
| metrics | ||
| tracker | ||
| utils | ||
| __init__.py | ||
| conftest.py | ||
| helpers.py | ||