Skip to content

Commit

Permalink
chore: ignore test utils in coverage reporting (#5133)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Jun 25, 2024
1 parent 40bf2a5 commit 365f989
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 9 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion archive/tar_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Untar } from "./untar.ts";
import { Buffer } from "@std/io/buffer";
import { copy } from "@std/io/copy";
import { readAll } from "@std/io/read-all";
import { filePath, testdataDir } from "./_test_common.ts";
import { filePath, testdataDir } from "./_test_utils.ts";

Deno.test("createTarArchive", async function () {
// initialize
Expand Down
2 changes: 1 addition & 1 deletion archive/untar_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { Buffer } from "@std/io/buffer";
import { copy } from "@std/io/copy";
import { readAll } from "@std/io/read-all";
import { filePath, testdataDir } from "./_test_common.ts";
import { filePath, testdataDir } from "./_test_utils.ts";

interface TestEntry {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"typos": "typos -c ./.github/workflows/typos.toml",
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
"wasmbuild": "deno run -A jsr:@deno/wasmbuild@0.17.1 --js-ext mjs --sync",
"cov": "deno coverage --ignore=\"**/*.generated.mjs\"",
"cov": "deno coverage --ignore=\"**/*.generated.mjs,**/_test_utils.ts\"",
"cov:gen": "deno task cov --lcov --output=cov.lcov",
"cov:view": "deno task cov --html",
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion json/concatenated_json_parse_stream_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "@std/assert";
import { ConcatenatedJsonParseStream } from "./concatenated_json_parse_stream.ts";
import { assertInvalidParse, assertValidParse } from "./_test_common.ts";
import { assertInvalidParse, assertValidParse } from "./_test_utils.ts";

Deno.test({
name: "ConcatenatedJsonParseStream",
Expand Down
2 changes: 1 addition & 1 deletion json/json_parse_stream_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "@std/assert";
import { TextDelimiterStream } from "@std/streams/text-delimiter-stream";
import { TextLineStream } from "@std/streams/text-line-stream";
import { JsonParseStream } from "./json_parse_stream.ts";
import { assertInvalidParse, assertValidParse } from "./_test_common.ts";
import { assertInvalidParse, assertValidParse } from "./_test_utils.ts";

Deno.test({
name: "JsonParseStream",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion streams/delimiter_stream_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { DelimiterStream } from "./delimiter_stream.ts";
import { testTransformStream } from "./_test_common.ts";
import { testTransformStream } from "./_test_utils.ts";

const DELIMITER_STREAM_INPUTS = [
"a", // more than one subsequent chunks with no delimiters
Expand Down
2 changes: 1 addition & 1 deletion streams/text_delimiter_stream_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { TextDelimiterStream } from "./text_delimiter_stream.ts";
import { testTransformStream } from "./_test_common.ts";
import { testTransformStream } from "./_test_utils.ts";

Deno.test("TextDelimiterStream handles discard", async () => {
const delimStream = new TextDelimiterStream("foo", {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion webgpu/create_capture_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { assert, assertEquals } from "@std/assert";
import { ignore } from "./_test_util.ts";
import { ignore } from "./_test_utils.ts";
import { createCapture } from "./create_capture.ts";

Deno.test({
Expand Down
2 changes: 1 addition & 1 deletion webgpu/texture_with_data_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { assert } from "@std/assert/assert";
import { createTextureWithData } from "./texture_with_data.ts";
import { ignore } from "./_test_util.ts";
import { ignore } from "./_test_utils.ts";

Deno.test({
ignore,
Expand Down

0 comments on commit 365f989

Please sign in to comment.