diffs.nvim/spec
Barrett Ruth d797833341
test: add decoration provider, integration, and neogit spec files (#134)
## Problem

Regressions #119 and #120 showed the test suite had no coverage of the
decoration provider cache pipeline, no end-to-end pipeline tests from
buffer content to extmarks, and no Neogit-specific integration tests.

## Solution

Adds three new spec files (28 new tests, 316 total):

- `spec/decoration_provider_spec.lua` — indirect cache pipeline tests
via `_test` table: `ensure_cache` population, content fingerprint guard,
`pending_clear` semantics, BufWipeout cleanup
- `spec/integration_spec.lua` — full pipeline: diff buffer → `attach` →
extmarks; verifies `DiffsAdd`/`DiffsDelete` on correct lines, treesitter
captures, multi-hunk coverage
- `spec/neogit_integration_spec.lua` — `neogit_disable_hunk_highlight`
behavior, NeogitStatus/NeogitDiffView attach and cache population,
parser neogit filename patterns

Depends on #133.

Closes #122
2026-02-25 11:44:56 -05:00
..
commands_spec.lua feat: unified diff conflict resolution for unmerged files (#99) 2026-02-09 12:21:13 -05:00
conflict_spec.lua fix(conflict)!: change default nav keymaps from ]x/[x to ]c/[c (#132) 2026-02-24 12:07:54 -05:00
decoration_provider_spec.lua test: add decoration provider, integration, and neogit spec files (#134) 2026-02-25 11:44:56 -05:00
diff_spec.lua feat(config): replace algorithm 'auto'/'native' with 'default'/'vscode' 2026-02-06 21:23:40 -05:00
fugitive_spec.lua fix: pre-release cleanup for v0.2.0 (#102) 2026-02-09 15:08:36 -05:00
git_spec.lua feat: add :Gdiff, :Gvdiff, :Ghdiff commands for unified diff view 2026-02-04 19:52:17 -05:00
helpers.lua fix(highlight): include treesitter injections 2026-02-07 14:26:11 -05:00
highlight_spec.lua fix(highlight): revert line backgrounds to hl_group+hl_eol (#124) 2026-02-15 18:27:39 -05:00
init_spec.lua feat: remove config deprecation in v0.3.0 (#129) 2026-02-18 13:34:43 -05:00
integration_spec.lua test: add decoration provider, integration, and neogit spec files (#134) 2026-02-25 11:44:56 -05:00
merge_spec.lua fix(conflict)!: change default nav keymaps from ]x/[x to ]c/[c (#132) 2026-02-24 12:07:54 -05:00
minimal_init.lua feat(test): testing infrastructure 2026-02-01 23:09:05 -05:00
neogit_integration_spec.lua test: add decoration provider, integration, and neogit spec files (#134) 2026-02-25 11:44:56 -05:00
parser_spec.lua fix(parser): exclude git diff metadata from neogit filename patterns (#127) 2026-02-16 00:14:27 -05:00
read_buffer_spec.lua fix(commands): handle :e on diffs:// buffers via BufReadCmd 2026-02-06 22:21:33 -05:00
ux_spec.lua fix(commands): add diff buffer UX improvements 2026-02-07 16:48:31 -05:00