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

renatahodovan / grammarinator / 7025334956
84%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2023 10:32PM UTC
Jobs 1
Files 23
Run time 3s
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

28 Nov 2023 10:30PM UTC coverage: 88.252% (-0.07%) from 88.321%
7025334956

push

github

web-flow
Rule API revision (#192)

- `Rule.left_sibling` and `Rule.right_sibling` had misleading documentation
  stating that "no parent" or "inconsistent state" raised `ValueError`. However,
  "no parent" raised a different kind of error, while "inconsistent state" was
  explicitly hidden by the implementation. Fixed "no parent" not to raise, but
  "inconsistent state" to do raise and error.

- `Rule.replace`, `UnparserRule.insert_child`, and `UnparserRule.add_child` did
  not ensure that the node to be added to the tree was removed from its parent
  (if it had any). Fixed to remove the added node from its original parent.

- `Rule.delete` got renamed to `Rule.remove` to better describe its
  functionality (the node is not deleted, only removed from its parent).

- `UnparserRule.last_child` property setter was removed, since
  `UnparserRule.last_child = ...` was equivalent to
  `UnparserRule.last_child.replace(...)` (actually, a bit even worse). Even the
  examples and tests used the latter approach.

- UnparserRule's and UnlexerRule's initializers got new arguments to enable the
  explicit setting of all fields (UnparserRule.children, UnlexerRule.size).

- JsonTreeCodec updated to make use of the new initializer arguments.

- `copy.deepcopy` of any node copied the whole tree as it walked along the
  parent chain by default. Added `__copy__` and `__deepcopy__` to nodes to
  explicitly control copying. Shallow copies are disabled, deep copies only
  copy subtrees (without copying ancestors as well).

18 of 32 new or added lines in 2 files covered. (56.25%)

5 existing lines in 2 files now uncovered.

1525 of 1728 relevant lines covered (88.25%)

0.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
14
63.89
1.77% grammarinator/runtime/rule.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.47
-2.46% grammarinator/tool/tree_codec.py
4
63.89
1.77% grammarinator/runtime/rule.py
Jobs
ID Job ID Ran Files Coverage
1 7025334956.1 28 Nov 2023 10:32PM UTC 23
88.25
Source Files on build 7025334956
  • Tree
  • List 23
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b191d64f on github
  • Prev Build on master (#7025162757)
  • Next Build on master (#7039883284)
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