Skip to content
Novus Examples

Explore the test library

Search files, editable visual templates, and live browser targets from one registry-backed directory. Filtered query views stay crawlable for links but are deliberately noindex; the stable taxonomy pages below remain the canonical search surfaces.

88 results

Page 3 of 4; 24 results per page.

Show the canonical directory
Preview of Gitconfig - Sections, Quoted Subsections and Shell Aliases
gitconfig
601 B
Actual file preview for Gitconfig - Sections, Quoted Subsections and Shell Aliases

Gitconfig - Sections, Quoted Subsections and Shell Aliases

A realistic global config exercising the whole INI-like grammar: bracketed sections, quoted subsection names that are case-sensitive while section names are not, values with size suffixes, a shell alias whose leading `!` changes how the rest is executed, and both comment characters.

File
GITCONFIG · Repo Config · UTF-8
Preview of Gitignore - Escaped #, !, Bracket and Trailing Space
gitignore
416 B
Actual file preview for Gitignore - Escaped #, !, Bracket and Trailing Space

Gitignore - Escaped #, !, Bracket and Trailing Space

Every escape the format defines, including the one nobody expects: a trailing space is stripped from a pattern unless it is backslash-escaped, so `draft\ ` and `draft` ignore different files. Editors that trim trailing whitespace on save silently change what this file means.

File
GITIGNORE · Repo Config · UTF-8
Preview of Gitignore - Globstar, Anchors and Character Classes
gitignore
431 B
Actual file preview for Gitignore - Globstar, Anchors and Character Classes

Gitignore - Globstar, Anchors and Character Classes

One pattern per rule in the gitignore grammar: a leading slash that anchors to the containing directory, the same name unanchored, `**` in all three positions, `?` and `[...]` classes, and a trailing slash that matches only directories. Every line is a separate assertion for a matcher's test suite.

File
GITIGNORE · Repo Config · UTF-8
Preview of Gitignore - Negation After a Directory Exclusion (No Effect)
gitignore
194 B
Actual file preview for Gitignore - Negation After a Directory Exclusion (No Effect)

Gitignore - Negation After a Directory Exclusion (No Effect)

The single most misunderstood rule in the format: once `build/` excludes a directory, git does not descend into it, so `!build/keep.txt` is dead. The file is valid and the behaviour is documented — it is the author's expectation that is wrong, which is exactly why an ignore-matcher must reproduce it rather than being helpful.

File
GITIGNORE · Repo Config · UTF-8
Use case
Config parsingConfig testing+1· Paired fixture
Preview of Gitignore - Node Monorepo With Re-Included Artefacts
gitignore
339 B
Actual file preview for Gitignore - Node Monorepo With Re-Included Artefacts

Gitignore - Node Monorepo With Re-Included Artefacts

A realistic monorepo ignore file that uses `dist/*` rather than `dist/` precisely so the two `!dist/...` re-inclusions below it can work. It also carries the `.env.*` / `!.env.example` and `*.log` / `!logs/retained/*.log` pairs that every ignore-matcher has to order correctly.

File
GITIGNORE · Repo Config · UTF-8
Preview of Gitignore - The Working Form of the Same Negation
gitignore
197 B
Actual file preview for Gitignore - The Working Form of the Same Negation

Gitignore - The Working Form of the Same Negation

The corrected twin: `build/*` excludes the directory's contents instead of the directory, so git still descends and `!build/keep.txt` re-includes the file. The two fixtures differ by two characters and produce opposite results, which makes them a precise pass/fail pair for an ignore engine.

File
GITIGNORE · Repo Config · UTF-8
Use case
Config parsingConfig testing+1· Paired fixture
Preview of Gitmodules - Three Submodules With Relative URL and branch = .
gitmodules
407 B
Actual file preview for Gitmodules - Three Submodules With Relative URL and branch = .

Gitmodules - Three Submodules With Relative URL and branch = .

Three submodules covering the awkward values: a relative `../currency-tables.git` URL that has to be resolved against the superproject's remote, `branch = .` meaning 'the same branch as the superproject', and `ignore = dirty` which hides a submodule's local changes from `git status`. The section name and the `path` value are separate strings and are allowed to differ.

File
GITMODULES · Repo Config · UTF-8
Preview of Mailmap - All Four Rewrite Forms
txt
587 B
Actual file preview for Mailmap - All Four Rewrite Forms

Mailmap - All Four Rewrite Forms

One line for each of the four rewrite forms git's mailmap supports, including the two-pair form that matches on the commit name as well as the email. Four aliases collapse onto three canonical authors, which is exactly the transformation a shortlog or contributor report has to reproduce.

File
TXT · Repo Config · UTF-8
Preview of Merge Conflict - diff3 Marker Style With Base Section
txt
172 B
Actual file preview for Merge Conflict - diff3 Marker Style With Base Section

Merge Conflict - diff3 Marker Style With Base Section

The same conflict with `merge.conflictStyle=diff3`, which inserts the merge base between the two sides behind a row of pipes. Tools that split a conflict on `=======` alone silently fold the ancestor text into the ours side.

File
TXT · Merges · UTF-8
Use case
Error handlingVisual diff / regression+1· Conversion set
Preview of Merge Conflict - Nested Markers From a Conflicted Resolution
txt
217 B
Actual file preview for Merge Conflict - Nested Markers From a Conflicted Resolution

Merge Conflict - Nested Markers From a Conflicted Resolution

Someone committed a file that still contained conflict markers, and merging that commit produced markers inside markers. Region matchers that pair the first `<<<<<<<` with the first `=======` split this file in the wrong place and produce two overlapping regions that cannot both be resolved.

File
TXT · Merges · UTF-8
Preview of Merge Conflict - Real Region Beside Marker Lookalikes
md
489 B
Actual file preview for Merge Conflict - Real Region Beside Marker Lookalikes

Merge Conflict - Real Region Beside Marker Lookalikes

Documentation about merge conflicts that quotes the markers inside a fenced code block, and then genuinely conflicts further down. A pre-commit hook that greps for `^<<<<<<<` reports two hits and blocks a clean commit; one that understands Markdown fences reports the one that matters.

File
MD · Merges · UTF-8
Preview of Merge Conflict - Three Regions in One File
txt
424 B
Actual file preview for Merge Conflict - Three Regions in One File

Merge Conflict - Three Regions in One File

One file left with three independent unresolved regions and clean text between them, which is what a real deployment-values merge looks like. Editors that jump to 'the next conflict' and resolvers that report a boolean rather than a count both get exercised here.

File
TXT · Merges · UTF-8
Preview of Merge Conflict - Two-Way (merge) Marker Style
txt
128 B
Actual file preview for Merge Conflict - Two-Way (merge) Marker Style

Merge Conflict - Two-Way (merge) Marker Style

A working-tree file left mid-merge in git's default `merge` conflict style: our version, a row of equals signs, their version, and branch labels on the opening and closing markers. Both sides happen to end with the same line, which the zdiff3 twin in this group hoists out and this style repeats.

File
TXT · Merges · UTF-8
Use case
Error handlingVisual diff / regression+1· Conversion set
Preview of Merge Conflict - zdiff3 Marker Style
txt
161 B
Actual file preview for Merge Conflict - zdiff3 Marker Style

Merge Conflict - zdiff3 Marker Style

The identical merge under `merge.conflictStyle=zdiff3`, which hoists lines common to both sides out of the conflict region — here 'jitter: on' moves below the closing marker. Diff this against the diff3 twin to see that the same conflict produces different file contents depending on one config value.

File
TXT · Merges · UTF-8
Use case
Error handlingVisual diff / regression+1· Conversion set
Preview of MERGE_MSG - Merge Commit Template With a Conflicts Block
txt
462 B
Actual file preview for MERGE_MSG - Merge Commit Template With a Conflicts Block

MERGE_MSG - Merge Commit Template With a Conflicts Block

The message template git writes into .git/MERGE_MSG when a merge stops on conflicts: one real subject line followed by a commented list of the conflicted paths and the standard advice block. Everything after the first blank line is stripped by `git commit`, so a hook that lints the whole file rejects messages git would accept.

File
TXT · Merges · UTF-8
Preview of Normal Diff - ed-Style Change Commands
diff
80 B
Actual file preview for Normal Diff - ed-Style Change Commands

Normal Diff - ed-Style Change Commands

The default output of bare `diff`: ed-style commands such as `3a4` with `<` and `>` bodies and no file headers at all. Tooling that identifies diffs by looking for `---`, `+++` or `@@` cannot even tell this is a diff, which is exactly what makes it a useful negative fixture.

File
DIFF · Diffs · UTF-8
Use case
Error handlingVisual diff / regression+1· Conversion set
Preview of Orig File - Untouched Backup Saved Beside a Failed Patch
txt
401 B
Actual file preview for Orig File - Untouched Backup Saved Beside a Failed Patch

Orig File - Untouched Backup Saved Beside a Failed Patch

The `.orig` backup GNU patch writes beside a file it has modified: the exact pre-patch content, kept so a failed application can be unwound. Paired with the .rej fixture, it is the complete state a developer actually finds after a patch goes wrong.

File
TXT · Merges · Go
Use case
Visual diff / regressionCode parsing+1· Paired fixture
Preview of Package Manifest - Intentionally Invalid, Conflict Markers in JSON
json
244 B
Actual file preview for Package Manifest - Intentionally Invalid, Conflict Markers in JSON

Package Manifest - Intentionally Invalid, Conflict Markers in JSON

A package manifest left mid-merge, so the file is intentionally invalid JSON: conflict markers sit inside the dependencies object. Any tool that reads manifests has to fail on this with a message about the conflict rather than a bare syntax error at line 5.

File
JSON · Merges · UTF-8
Use case
Error handlingVisual diff / regression+1· Conversion set
Preview of Reject File - Hunks git apply Could Not Place
diff
737 B
Actual file preview for Reject File - Hunks git apply Could Not Place

Reject File - Hunks git apply Could Not Place

What `git apply --reject` leaves behind when a hunk will not apply: the failed hunks alone, under a header that is neither `diff --git` nor a plain `---`/`+++` pair. Ships with its .orig twin so the pair can drive a resolve-the-reject workflow end to end.

File
DIFF · Merges · UTF-8
Use case
Error handlingVisual diff / regression+1· Paired fixture
Preview of Unified Diff - Bare Line Number in the Hunk Header
diff
126 B
Actual file preview for Unified Diff - Bare Line Number in the Hunk Header

Unified Diff - Bare Line Number in the Hunk Header

A one-line file changed in place. Both ranges have length one, so the header is written `@@ -1 +1 @@` with no comma and no count — the abbreviation the unified format allows and that regexes of the form `-(\d+),(\d+)` fail to match.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - CRLF Line Endings Throughout
diff
821 B
Actual file preview for Unified Diff - CRLF Line Endings Throughout

Unified Diff - CRLF Line Endings Throughout

Byte-for-byte the same diff as its LF twin except that every line ends CR LF, which is what a diff produced or saved on Windows looks like. Readers that compare a hunk line against expected content without stripping the CR find that no line matches.

File
DIFF · Diffs · UTF-8
Use case
Encoding detectionVisual diff / regression+1· Paired fixture
Preview of Unified Diff - Deleted File Against /dev/null
diff
295 B
Actual file preview for Unified Diff - Deleted File Against /dev/null

Unified Diff - Deleted File Against /dev/null

The mirror of the added-file fixture: every line is a deletion and the new range is `+0,0`. A renderer that writes an empty file instead of unlinking it, or that reports the change as a truncation, fails this one.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Diff of a Checked-In Patch File
diff
414 B
Actual file preview for Unified Diff - Diff of a Checked-In Patch File

Unified Diff - Diff of a Checked-In Patch File

Quilt, Debian and vendor trees check patches into the repository, so editing one produces a diff whose body is itself full of `+++`, `---` and `@@` lines and whose section heading is a `diff --git` line. Any scanner that finds file boundaries by searching for those tokens anywhere in the stream splits this single-file diff into several phantom files.

File
DIFF · Diffs · UTF-8
Preview of Unified Diff - Function Heading After the Hunk Header
diff
845 B
Actual file preview for Unified Diff - Function Heading After the Hunk Header

Unified Diff - Function Heading After the Hunk Header

git appends the enclosing declaration after the closing `@@` of each hunk header. The text is free-form and is not part of the range, so a parser that splits the header on `@@` and takes the last field reads the function signature as a range.

File
DIFF · Diffs · Go