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

source-academy / py-slang / 30374016003

28 Jul 2026 03:34PM UTC coverage: 86.205% (+0.05%) from 86.159%
30374016003

Pull #366

github

web-flow
Merge f200a3cca into 63acf3264
Pull Request #366: Add draw_data to the py2js engine

4443 of 5546 branches covered (80.11%)

Branch coverage included in aggregate %.

41 of 42 new or added lines in 5 files covered. (97.62%)

9630 of 10779 relevant lines covered (89.34%)

179273.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/conductor/dataVisualizer/Py2JsDataVisualizerRunnerPlugin.ts
1
import {
2✔
2
  BaseDataVisualizerRunnerPlugin,
3
  type RefIdAllocator,
4
} from "@sourceacademy/runner-data-visualizer";
5
import type { SerializedDataVisualizerNode } from "@sourceacademy/common-data-visualizer";
6

7
import type { PyValue } from "../../engines/py2js/runtime";
8
import { toDataVisualizerNodePy2Js } from "./toDataVisualizerNodePy2Js";
2✔
9

10
/**
11
 * The py2js engine's binding of the language-agnostic data visualizer runner — the native-value
12
 * counterpart of `PythonDataVisualizerRunnerPlugin` (the CSE machine's binding).
13
 *
14
 * All py2js-specific knowledge lives in {@link toDataVisualizerNodePy2Js}; this class is the thin
15
 * adapter `BaseDataVisualizerRunnerPlugin` expects — no cycle-detection or classification here, that
16
 * stays host-side, shared across every language and every engine.
17
 */
18
export class Py2JsDataVisualizerRunnerPlugin extends BaseDataVisualizerRunnerPlugin<PyValue> {
2✔
19
  protected toNode(value: PyValue, refs: RefIdAllocator): SerializedDataVisualizerNode {
NEW
20
    return toDataVisualizerNodePy2Js(value, refs);
×
21
  }
22
}
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