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

source-academy / js-slang / 15237418122

25 May 2025 11:31AM UTC coverage: 77.048% (-3.5%) from 80.538%
15237418122

push

github

web-flow
Rewrite: Stepper (#1742)

3433 of 4826 branches covered (71.14%)

Branch coverage included in aggregate %.

1032 of 1260 new or added lines in 27 files covered. (81.9%)

440 existing lines in 29 files now uncovered.

10099 of 12737 relevant lines covered (79.29%)

142411.96 hits per line

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

60.87
/src/stdlib/inspector.ts
1
import type { Context, Node } from '../types'
2

3
export const setBreakpointAtLine = (lines: string[]): void => {
77✔
UNCOV
4
  breakpoints = lines
×
5
}
6

7
let breakpoints: string[] = []
77✔
8
let moved: boolean = true
77✔
9
let prevStoppedLine: number = -1
77✔
10

11
export const checkEditorBreakpoints = (context: Context, node: Node): void => {
77✔
12
  if (node.loc) {
5,411,268✔
13
    const currentLine = node.loc.start.line - 1
5,352,529✔
14
    if (!moved && currentLine !== prevStoppedLine) {
5,352,529!
UNCOV
15
      moved = true
×
16
    }
17
    if (context.runtime.debuggerOn && breakpoints[currentLine] !== undefined && moved) {
5,352,529!
18
      moved = false
×
19
      prevStoppedLine = currentLine
×
UNCOV
20
      context.runtime.break = true
×
21
    }
22
  }
23
}
24

25
export const areBreakpointsSet = () => breakpoints.length > 0
603✔
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