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

source-academy / plugins / 30435878721
97%
feat/add-init-infra: 67%

Build:
Build:
LAST BUILD BRANCH: renovate/changesets-cli-3.x
DEFAULT BRANCH: feat/add-init-infra
Ran 29 Jul 2026 08:32AM UTC
Jobs 1
Files 27
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

29 Jul 2026 08:31AM UTC coverage: 93.763% (-4.6%) from 98.406%
30435878721

push

github

web-flow
Add unit tests for web/data-visualizer's Tree and OriginalDrawer (#80)

* Add unit tests for web/data-visualizer's Tree and OriginalDrawer

common and runner already had solid coverage, but web/data-visualizer
- the package with the actually intricate logic - had none: cycle
handling in Tree.fromSerializedNode, and OriginalDrawer's pixel math
(getNodeWidth/getNodeHeight, backward-arrow routing). That gap is how
the margin-clipping bug shipped silently earlier.

Covers: plain non-shared arrays, a self-referential array (proves
getNodeWidth/getNodeHeight terminate instead of recursing through the
cycle, and that the self-loop correctly routes as a backward arrow),
a shared-but-acyclic structure (proves sharing alone does NOT trip the
backward-arrow path), a malformed unresolved-ref fallback, and basic
width/height growth invariants. Every pixel value is hand-traced
against the real formulas, not just re-derived from them.

* Close remaining coverage gaps: function nodes, formatLeaf, ArrayDrawable

Follow-up to the earlier tree/OriginalDrawer tests, closing gaps that
those tests inadvertently exposed rather than covered (importing
Tree.ts pulls in the whole package - including 5 previously-untracked
drawable components - for the first time, so istanbul started scoring
their unexecuted render() bodies against the aggregate).

Added: a "function" wire-node case (construction, sharing, and drawing
- FunctionTreeNode.createDrawable was completely untested), the real
Tree.draw() entry point DataVisualizerView.tsx actually calls (only
OriginalDrawer directly was tested before), OriginalDrawer's other
top-level branch (a bare leaf with no pair/array), formatLeaf's
truncation/quoting logic, and ArrayDrawable's render() - the one
drawable with real branching (empty-vs-leaf slots, separator line
count, the BoxMinWidth clamp for a real zero-element list case).

Left uncovered on purpose: ArrowDrawable, BackwardArrowDrawable,
FunctionDrawable, NullDrawable - static ... (continued)

129 of 145 branches covered (88.97%)

Branch coverage included in aggregate %.

322 of 336 relevant lines covered (95.83%)

7.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30435878721.1 29 Jul 2026 08:32AM UTC 27
93.76
GitHub Action Run
Source Files on build 30435878721
  • Tree
  • List 27
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30435878721
  • b8841537 on github
  • Prev Build on main (#30435670432)
  • Next Build on main (#30447222230)
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