Skip to content

Commit

Permalink
debugger: rename inspector-cli test module to debugger
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trott authored and jasnell committed May 6, 2021
1 parent c6dc931 commit bed947b
Show file tree
Hide file tree
Showing 26 changed files with 53 additions and 53 deletions.
58 changes: 29 additions & 29 deletions test/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ This directory contains modules used to test the Node.js implementation.
* [Common module API](#common-module-api)
* [Countdown module](#countdown-module)
* [CPU Profiler module](#cpu-profiler-module)
* [Debugger module](#debugger-module)
* [DNS module](#dns-module)
* [Duplex pair helper](#duplex-pair-helper)
* [Environment variables](#environment-variables)
* [Fixtures module](#fixtures-module)
* [Heap dump checker module](#heap-dump-checker-module)
* [hijackstdio module](#hijackstdio-module)
* [HTTP2 module](#http2-module)
* [Inspector CLI module](#inspector-cli-module)
* [Internet module](#internet-module)
* [ongc module](#ongc-module)
* [Report module](#report-module)
Expand Down Expand Up @@ -506,6 +506,34 @@ Sampling interval in microseconds.
Throws an `AssertionError` if there are no call frames with the expected
`suffix` in the profiling data contained in `file`.

## Debugger module

Provides common functionality for tests for `node inspect`.

### `startCLI(args[[, flags], spawnOpts])`

* `args` [&lt;string>][]
* `flags` [&lt;string>][] default = []
* `showOpts` [&lt;Object>][] default = {}
* return [&lt;Object>][]

Returns a null-prototype object with properties that are functions and getters
used to interact with the `node inspect` CLI. These functions are:

* `flushOutput()`
* `waitFor()`
* `waitForPrompt()`
* `waitForInitialBreak()`
* `breakInfo`
* `ctrlC()`
* `output`
* `rawOutput`
* `parseSourceLines()`
* `writeLine()`
* `command()`
* `stepCommand()`
* `quit()`

## `DNS` Module

The `DNS` module provides utilities related to the `dns` built-in module.
Expand Down Expand Up @@ -824,34 +852,6 @@ upon initial establishment of a connection.
socket.write(http2.kClientMagic);
```

## Inspector CLI module

Provides common functionality for tests for `node inspect`.

### `startCLI(args[[, flags], spawnOpts])`

* `args` [&lt;string>][]
* `flags` [&lt;string>][] default = []
* `showOpts` [&lt;Object>][] default = {}
* return [&lt;Object>][]

Returns a null-prototype object with properties that are functions and getters
used to interact with the `node inspect` CLI. These functions are:

* `flushOutput()`
* `waitFor()`
* `waitForPrompt()`
* `waitForInitialBreak()`
* `breakInfo`
* `ctrlC()`
* `output`
* `rawOutput`
* `parseSourceLines()`
* `writeLine()`
* `command()`
* `stepCommand()`
* `quit()`

## Internet Module

The `common/internet` module provides utilities for working with
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const { spawn } = require('child_process');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-auto-resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-backtrace.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-break.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-clear-breakpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-custom-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-exceptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-exec-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-heap-profiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (!common.isMainThread) {
}

const fixtures = require('../common/fixtures');
const startCLI = require('../common/inspector-cli');
const startCLI = require('../common/debugger');
const tmpdir = require('../common/tmpdir');

tmpdir.refresh();
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-invalid-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const { createServer } = require('net');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-launch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-low-level.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

const fixtures = require('../common/fixtures');
const startCLI = require('../common/inspector-cli');
const startCLI = require('../common/debugger');
const assert = require('assert');

// Debugger agent direct access.
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-pid.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const { spawn } = require('child_process');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-preserve-breaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-random-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-sb-before-load.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-use-strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/inspector-cli/test-inspector-cli-watchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
common.skipIfInspectorDisabled();

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

const assert = require('assert');

Expand Down

0 comments on commit bed947b

Please sign in to comment.