• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dandavison / delta / 43272662418
66%
master: 59%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 12 Nov 2026 05:47PM UTC
Jobs 1
Files 65
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2026 05:44PM UTC coverage: 66.08% (-0.2%) from 66.234%
43272662418

push

github

web-flow
Switch feature fixes (#2330)

* Test four regressions from #2326 found in review

- Two sections with builtin names that set the same option gave a different result between runs,
  since options set in [delta] were gathered in HashMap order.
- A switch feature that a later feature of the user's turned off still brought in its values:
  side-by-side's line numbers, navigate's label.
- A switch feature's own option ranked below the user's features, so features = off line-numbers,
  where off sets line-numbers = false, had no line numbers.
- A section with a builtin's name beat the command line: --raw, and a feature added in
  DELTA_FEATURES.

cargo test test_switch_and_style_features

* Gather builtin features in a fixed order, so that the same config gives the same output on each run

Options set in [delta] and in a builtin feature were gathered in HashMap order, and since #2326 a
section with a builtin's name is looked up in the order of the list, so two such sections setting
the same option gave either value. Now they are gathered in the order of FEATURE_OPTIONS, in which
a builtin feature comes before those it brings in: side-by-side's section beats line-numbers'.

cargo test two_sections_with_builtin_names

* Let a switch feature's own option keep its place in the feature list

Since #2326 every value of a switch feature ranked below the user's features, including its own
option, so with features = off line-numbers, where off sets line-numbers = false, there were no line
numbers. Only a switch feature's other values are defaults; its own option is looked up in the
order of the list, as before #2326.

cargo test a_switch_features_own_option

* Keep out a builtin feature whose own option the user's config turns off, wherever that is

#2326 kept a feature out only when [delta] turned its option off, so with features = side-by-side
off, where off sets side-by-side = false, the unified view had side-by-side's line numbers. Now,
after gathering, delta re... (continued)

43 of 49 new or added lines in 2 files covered. (87.76%)

29 existing lines in 11 files now uncovered.

2704 of 4092 relevant lines covered (66.08%)

1.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
76.74
8.17% src/options/get.rs
1
89.58
-0.82% src/options/set.rs

Coverage Regressions

Lines Coverage ∆ File
12
46.15
-9.29% src/format.rs
4
85.96
-4.6% src/handlers/draw.rs
3
56.16
-2.05% src/utils/process.rs
2
20.0
-1.43% src/features/navigate.rs
2
89.58
-0.82% src/options/set.rs
1
76.29
0.25% src/ansi/mod.rs
1
48.78
0.0% src/color.rs
1
88.1
-1.06% src/handlers/hunk.rs
1
84.38
-3.13% src/handlers/submodule.rs
1
53.47
-0.46% src/style.rs
1
48.39
-3.23% src/subcommands/diff.rs
Jobs
ID Job ID Ran Files Coverage
1 43272662418.1 12 Nov 2026 05:47PM UTC 65
66.08
GitHub Action Run
Source Files on build 43272662418
  • Tree
  • List 65
  • Changed 28
  • Source Changed 0
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 675ccf8d on github
  • Prev Build on main (#43238522419)
  • Next Build on main (#43305788690)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc