This directory contains tests for the llm_ctx utility.
test_framework.h
: A minimal test framework with simple assertionstest_gitignore.c
: Unit tests for the gitignore pattern matching functionalitytest_cli.c
: Integration tests for the CLI behavior
To run all tests:
make test
To run a specific test:
make tests/test_gitignore
./tests/test_gitignore
-
Gitignore Pattern Handling:
- Pattern parsing
- Negation patterns
- Directory-only patterns
- Pattern precedence
-
CLI Behavior:
- Default gitignore behavior
- Using the
--no-gitignore
flag - File type filtering
- Command integration