chore: ignore test utils in coverage reporting (#5133)

This commit is contained in:
Yoshiya Hinosawa 2024-06-25 16:35:00 +09:00 committed by GitHub
parent 40bf2a57b4
commit 365f989bde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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;

View File

@ -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"

View File

@ -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",

View File

@ -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",

View File

@ -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

View File

@ -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", {

View File

@ -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({

View File

@ -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,