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

jhheider / edikt / 29674200918
96%

Build:
DEFAULT BRANCH: main
Ran 19 Jul 2026 05:01AM UTC
Jobs 1
Files 47
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

19 Jul 2026 05:01AM UTC coverage: 96.001% (-0.09%) from 96.091%
29674200918

push

github

jhheider
feat(toml): array-index paths in set/delete, incl. array-of-tables (#59)

`Toml::set`/`delete` now handle a path ending in an array index, the follow-up
its own TODO named. A trailing `[n]` sets, replaces, or appends (`n == len`) an
array element, and auto-vivifies the array:

  .bin[1] = {name = "b"}   # append a new [[bin]] block
  .bin[0] = {name = "z"}   # replace element 0 in place, siblings untouched
  .xs[2]  = 3              # append to an inline array
  del(.bin[0])             # remove an array-of-tables element

A table value in an array-of-tables (or an absent/empty array) renders as a
`[[key]]` block; scalars and arrays use an inline array element. Negative
indices count from the end; an out-of-range set errors (naming the append
index), an out-of-range delete is a jq-style no-op. Field-path set/delete is
unchanged (the field walk is extracted to shared helpers).

Lossless: replacing or appending one element leaves every untouched sibling,
comment, and blank line byte-for-byte, verified by a new array-of-tables
round-trip fixture and the array_index_set_and_delete test.

Closes #59. Bumps edikt-toml 0.2.3, edikt 0.2.5.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M2mmYNDMXjtRZUF4qw7sjf

160 of 175 new or added lines in 2 files covered. (91.43%)

32 existing lines in 2 files now uncovered.

10539 of 10978 relevant lines covered (96.0%)

90.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
95.76
-1.45% crates/edikt-toml/src/lib.rs
4
97.69
-2.31% crates/edikt-toml/src/edit.rs

Coverage Regressions

Lines Coverage ∆ File
28
95.76
-1.45% crates/edikt-toml/src/lib.rs
4
97.69
-2.31% crates/edikt-toml/src/edit.rs
Jobs
ID Job ID Ran Files Coverage
1 29674200918.1 19 Jul 2026 05:01AM UTC 47
96.0
GitHub Action Run
Source Files on build 29674200918
  • Tree
  • List 47
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29674200918
  • 6053e619 on github
  • Prev Build on main (#29661624258)
  • Next Build on main (#29804246149)
  • Delete
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