Skip to content

Commit

Permalink
Fix CQM Major defects in Backend (Samsung#1607)
Browse files Browse the repository at this point in the history
This commit fixes 4 major defects in modules in Backend directory.
It fixes by refering unused objects.

ONE-vscode-DCO-1.0-Signed-off-by: Dayoung Lee <dayoung.lee@samsung.com>
  • Loading branch information
dayo09 authored Jul 18, 2023
1 parent 8e9ad51 commit c8c4d4b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
8 changes: 3 additions & 5 deletions src/Tests/Backend/Compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ import { CompilerBase } from "../../Backend/Compiler";
suite("Backend", function () {
suite("CompilerBase", function () {
suite("#constructor()", function () {
test("Create dummy compiler", function (pass) {
new CompilerBase();

pass();
assert.ok(true);
test("Create dummy compiler", function () {
const instance = new CompilerBase();
assert.isTrue(instance instanceof CompilerBase);
});
});

Expand Down
8 changes: 3 additions & 5 deletions src/Tests/Backend/Executor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ import { ExecutorBase } from "../../Backend/Executor";
suite("Backend", function () {
suite("ExecutorBase", function () {
suite("#constructor()", function () {
test("Create dummy executor", function (pass) {
new ExecutorBase();

pass();
assert.ok(true);
test("Create dummy executor", function () {
const instance = new ExecutorBase();
assert.isTrue(instance instanceof ExecutorBase);
});
});

Expand Down
16 changes: 6 additions & 10 deletions src/Tests/Backend/Toolchain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ suite("Backend", function () {
suite("ToolCommand", function () {
const toolchainInfo = new ToolchainInfo("dummy", "dummy toolchain");
suite("#constructor()", function () {
test("Create dummy tool command", function (pass) {
new ToolCommand(toolchainInfo);

pass();
assert.ok(true);
test("Create dummy tool command", function () {
const instance = new ToolCommand(toolchainInfo);
assert.isTrue(instance instanceof ToolCommand);
});
});

Expand Down Expand Up @@ -54,11 +52,9 @@ suite("Backend", function () {
const toolchainInfo = new ToolchainInfo("dummy", "dummy toolchain");

suite("#constructor()", function () {
test("Create dummy toolchain", function (pass) {
new Toolchain(toolchainInfo);

pass();
assert.ok(true);
test("Create dummy toolchain", function () {
const instance = new Toolchain(toolchainInfo);
assert.isTrue(instance instanceof Toolchain);
});
});

Expand Down

0 comments on commit c8c4d4b

Please sign in to comment.