Skip to content
Testaroo

Source files for parsers and linters

Short, known-correct source files in many languages with classes, functions, generics, enums, and error handling, for testing parsers, linters, formatters, language detection, and diff viewers.

Each card starts with one representative test file. Choose a use case, search, or filter to find a specific profile; a card’s variant menu contains its related samples.

Filter these files
More filters and sorting
More file filters

Results

161 test families · 229 available files · Page 1 of 9

Preview of Code Config: Docker Compose Snippet

YAML

Code Config: Docker Compose Snippet

Tiny SAMPLE tooling config snippet (docker-compose-snippet) for editor/linter harnesses.

File
YAML · YAML
Preview of Combined Diff - diff --cc With Two Parents

Merges

Combined Diff - diff --cc With Two Parents

What `git show` prints for a merge commit: a `diff --cc` header, an index line naming three blobs, `@@@` hunk markers, and two prefix columns instead of one. The `++` line is the giveaway a reviewer is looking for: conte

File
DIFF · Merges · UTF-8