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

fktn-k / fkYAML / 31943414714
100%

Build:
DEFAULT BRANCH: develop
Ran 16 Aug 2026 11:08AM UTC
Jobs 1
Files 32
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

16 Aug 2026 11:05AM UTC coverage: 100.0%. Remained the same
31943414714

push

github

web-flow
Complete explicit mapping keys which are not followed by a value (#554)

* Add a mapping entry for an explicit key whose value is omitted

An omitted mapping value is a null value, but the deserializer only handled
that for implicit keys. With an explicit key the pending key node was popped
off the context stack and discarded, so the entry disappeared from the result
without any error:

```yaml
? foo
:
bar: baz
# -> {bar: baz}, expected {foo: null, bar: baz}
```

The omitted value branch of the key separator handling asserted that the
current context is MAPPING_VALUE, which does not hold for an explicit key
(the context is BLOCK_MAPPING_EXPLICIT_KEY), so a debug build tripped the
assertion and an NDEBUG build silently dropped the entry. Add the entry with
a null value in that case instead.

* Complete explicit mapping key which isn't followed by value on its line

An explicit key is held in its own parse context until its value is found, and
only a `: value` on the same line completed the entry. Every other way of
writing the entry dropped it without an error: a key with no key separator at
all, and a key whose value begins on a following line.

```yaml
? foo
? bar
baz: 123

? qux
:
  corge
```

Add two helpers for the two ways an explicit key entry gets completed, adding
it either with a null value or with an empty value node to parse the value
into, and use them where a pending explicit key was previously discarded: at
the end of a document, before another explicit key, before a mapping entry
with an implicit key, and where the value of the explicit key begins on a
following line.

Note that a document can now report a duplicate mapping key which used to be
lost with the dropped entry, for example `? foo` followed by `foo: 123`.

* Emit a parse error for a key separator which follows no mapping key

The omitted value branch of the key separator handling asserted that the
current context is a mapping value context. That does not hold for malformed
in... (continued)

1503 of 1503 branches covered (100.0%)

Branch coverage included in aggregate %.

43 of 43 new or added lines in 1 file covered. (100.0%)

5311 of 5311 relevant lines covered (100.0%)

1729.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31943414714.1 16 Aug 2026 11:08AM UTC 32
100.0
GitHub Action Run
Source Files on build 31943414714
  • Tree
  • List 32
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31943414714
  • 57997a8e on github
  • Prev Build on develop (#31933223912)
  • Next Build on develop (#32058002786)
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