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

dart-lang / yaml_edit / 8954262181
97%

Build:
DEFAULT BRANCH: main
Ran 05 May 2024 12:25AM UTC
Jobs 6
Files 9
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

02 May 2024 01:42PM UTC coverage: 96.475% (+0.01%) from 96.462%
8954262181

push

github

web-flow
Fix 55 (#75)

Fix removal of last key from map in block-mode when value is empty.

Fixes #55.

When the value is empty the `SourceSpan` for the `YamlNode` representing
the value in a map points to the colon.

Example:
```yaml
foo:
  bar:
```

The `YamlNode` for `foo.bar` has a value of `null` and starts and ends
at the colon `:` following `bar`. This means that removal might leave
the colon behind, which causes invalid YAML.

We have the same issue when removing `foo.bar` from the following YAML
document:

```yaml
foo:
  baz: true
  bar:
```

However, in this case, we have a hack that ensures we always strip away
the any comments that follows `bar`. We do this by deleting up-to the
next newline. If we apply the same hack when removing `foo.bar` in the
first example, then it works.

One could argue that it works by accident, but it's kind of desired that
trailing comments are removed, when the value they are trailing is
removed.

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

821 of 851 relevant lines covered (96.47%)

49.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 os:ubuntu-latest/dart:3.0/platform:vm - 8954262181.1 05 May 2024 12:25AM UTC 9
94.25
GitHub Action Run
2 os:ubuntu-latest/dart:stable/platform:vm - 8954262181.2 05 May 2024 12:25AM UTC 9
94.25
GitHub Action Run
3 os:ubuntu-latest/dart:stable/platform:chrome - 8954262181.3 05 May 2024 12:29AM UTC 9
93.76
GitHub Action Run
4 os:ubuntu-latest/dart:3.0/platform:chrome - 8954262181.4 05 May 2024 12:29AM UTC 9
94.12
GitHub Action Run
5 os:ubuntu-latest/dart:dev/platform:vm - 8954262181.5 05 May 2024 12:25AM UTC 9
94.25
GitHub Action Run
6 os:ubuntu-latest/dart:dev/platform:chrome - 8954262181.6 05 May 2024 12:28AM UTC 9
93.76
GitHub Action Run
Source Files on build 8954262181
  • Tree
  • List 9
  • Changed 9
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8954262181
  • fe2699dd on github
  • Prev Build on main (#8911170586)
  • Next Build on main (#8969624043)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc