Skip to content

Commit 72a3419

Browse files
Trotttargos
authored andcommitted
debugger: rename inspector-cli test module to debugger
PR-URL: #38530 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent e12164e commit 72a3419

26 files changed

+53
-53
lines changed

test/common/README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ This directory contains modules used to test the Node.js implementation.
99
* [Common module API](#common-module-api)
1010
* [Countdown module](#countdown-module)
1111
* [CPU Profiler module](#cpu-profiler-module)
12+
* [Debugger module](#debugger-module)
1213
* [DNS module](#dns-module)
1314
* [Duplex pair helper](#duplex-pair-helper)
1415
* [Environment variables](#environment-variables)
1516
* [Fixtures module](#fixtures-module)
1617
* [Heap dump checker module](#heap-dump-checker-module)
1718
* [hijackstdio module](#hijackstdio-module)
1819
* [HTTP2 module](#http2-module)
19-
* [Inspector CLI module](#inspector-cli-module)
2020
* [Internet module](#internet-module)
2121
* [ongc module](#ongc-module)
2222
* [Report module](#report-module)
@@ -513,6 +513,34 @@ Sampling interval in microseconds.
513513
Throws an `AssertionError` if there are no call frames with the expected
514514
`suffix` in the profiling data contained in `file`.
515515

516+
## Debugger module
517+
518+
Provides common functionality for tests for `node inspect`.
519+
520+
### `startCLI(args[[, flags], spawnOpts])`
521+
522+
* `args` [&lt;string>][]
523+
* `flags` [&lt;string>][] default = []
524+
* `showOpts` [&lt;Object>][] default = {}
525+
* return [&lt;Object>][]
526+
527+
Returns a null-prototype object with properties that are functions and getters
528+
used to interact with the `node inspect` CLI. These functions are:
529+
530+
* `flushOutput()`
531+
* `waitFor()`
532+
* `waitForPrompt()`
533+
* `waitForInitialBreak()`
534+
* `breakInfo`
535+
* `ctrlC()`
536+
* `output`
537+
* `rawOutput`
538+
* `parseSourceLines()`
539+
* `writeLine()`
540+
* `command()`
541+
* `stepCommand()`
542+
* `quit()`
543+
516544
## `DNS` Module
517545

518546
The `DNS` module provides utilities related to the `dns` built-in module.
@@ -831,34 +859,6 @@ upon initial establishment of a connection.
831859
socket.write(http2.kClientMagic);
832860
```
833861

834-
## Inspector CLI module
835-
836-
Provides common functionality for tests for `node inspect`.
837-
838-
### `startCLI(args[[, flags], spawnOpts])`
839-
840-
* `args` [&lt;string>][]
841-
* `flags` [&lt;string>][] default = []
842-
* `showOpts` [&lt;Object>][] default = {}
843-
* return [&lt;Object>][]
844-
845-
Returns a null-prototype object with properties that are functions and getters
846-
used to interact with the `node inspect` CLI. These functions are:
847-
848-
* `flushOutput()`
849-
* `waitFor()`
850-
* `waitForPrompt()`
851-
* `waitForInitialBreak()`
852-
* `breakInfo`
853-
* `ctrlC()`
854-
* `output`
855-
* `rawOutput`
856-
* `parseSourceLines()`
857-
* `writeLine()`
858-
* `command()`
859-
* `stepCommand()`
860-
* `quit()`
861-
862862
## Internet Module
863863

864864
The `common/internet` module provides utilities for working with
File renamed without changes.

test/parallel/test-debugger-address.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88

99
const assert = require('assert');
1010
const { spawn } = require('child_process');

test/sequential/test-debugger-auto-resume.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88
const { addLibraryPath } = require('../common/shared-lib-util');
99

1010
const assert = require('assert');

test/sequential/test-debugger-backtrace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88

99
const assert = require('assert');
1010
const path = require('path');

test/sequential/test-debugger-break.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88

99
const assert = require('assert');
1010
const path = require('path');

test/sequential/test-debugger-clear-breakpoints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88

99
const assert = require('assert');
1010
const path = require('path');

test/sequential/test-debugger-custom-port.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88

99
const assert = require('assert');
1010

test/sequential/test-debugger-exceptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88

99
const assert = require('assert');
1010
const path = require('path');

test/sequential/test-debugger-exec-scope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
common.skipIfInspectorDisabled();
55

66
const fixtures = require('../common/fixtures');
7-
const startCLI = require('../common/inspector-cli');
7+
const startCLI = require('../common/debugger');
88

99
const assert = require('assert');
1010

0 commit comments

Comments
 (0)