mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore: ignore test utils in coverage reporting (#5133)
This commit is contained in:
parent
40bf2a57b4
commit
365f989bde
@ -16,7 +16,7 @@ import { Untar } from "./untar.ts";
|
|||||||
import { Buffer } from "@std/io/buffer";
|
import { Buffer } from "@std/io/buffer";
|
||||||
import { copy } from "@std/io/copy";
|
import { copy } from "@std/io/copy";
|
||||||
import { readAll } from "@std/io/read-all";
|
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 () {
|
Deno.test("createTarArchive", async function () {
|
||||||
// initialize
|
// initialize
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
import { Buffer } from "@std/io/buffer";
|
import { Buffer } from "@std/io/buffer";
|
||||||
import { copy } from "@std/io/copy";
|
import { copy } from "@std/io/copy";
|
||||||
import { readAll } from "@std/io/read-all";
|
import { readAll } from "@std/io/read-all";
|
||||||
import { filePath, testdataDir } from "./_test_common.ts";
|
import { filePath, testdataDir } from "./_test_utils.ts";
|
||||||
|
|
||||||
interface TestEntry {
|
interface TestEntry {
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
"typos": "typos -c ./.github/workflows/typos.toml",
|
"typos": "typos -c ./.github/workflows/typos.toml",
|
||||||
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
|
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
|
||||||
"wasmbuild": "deno run -A jsr:@deno/wasmbuild@0.17.1 --js-ext mjs --sync",
|
"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:gen": "deno task cov --lcov --output=cov.lcov",
|
||||||
"cov:view": "deno task cov --html",
|
"cov:view": "deno task cov --html",
|
||||||
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"
|
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
import { assertEquals } from "@std/assert";
|
import { assertEquals } from "@std/assert";
|
||||||
import { ConcatenatedJsonParseStream } from "./concatenated_json_parse_stream.ts";
|
import { ConcatenatedJsonParseStream } from "./concatenated_json_parse_stream.ts";
|
||||||
import { assertInvalidParse, assertValidParse } from "./_test_common.ts";
|
import { assertInvalidParse, assertValidParse } from "./_test_utils.ts";
|
||||||
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
name: "ConcatenatedJsonParseStream",
|
name: "ConcatenatedJsonParseStream",
|
||||||
|
@ -4,7 +4,7 @@ import { assertEquals } from "@std/assert";
|
|||||||
import { TextDelimiterStream } from "@std/streams/text-delimiter-stream";
|
import { TextDelimiterStream } from "@std/streams/text-delimiter-stream";
|
||||||
import { TextLineStream } from "@std/streams/text-line-stream";
|
import { TextLineStream } from "@std/streams/text-line-stream";
|
||||||
import { JsonParseStream } from "./json_parse_stream.ts";
|
import { JsonParseStream } from "./json_parse_stream.ts";
|
||||||
import { assertInvalidParse, assertValidParse } from "./_test_common.ts";
|
import { assertInvalidParse, assertValidParse } from "./_test_utils.ts";
|
||||||
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
name: "JsonParseStream",
|
name: "JsonParseStream",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
import { DelimiterStream } from "./delimiter_stream.ts";
|
import { DelimiterStream } from "./delimiter_stream.ts";
|
||||||
import { testTransformStream } from "./_test_common.ts";
|
import { testTransformStream } from "./_test_utils.ts";
|
||||||
|
|
||||||
const DELIMITER_STREAM_INPUTS = [
|
const DELIMITER_STREAM_INPUTS = [
|
||||||
"a", // more than one subsequent chunks with no delimiters
|
"a", // more than one subsequent chunks with no delimiters
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
import { TextDelimiterStream } from "./text_delimiter_stream.ts";
|
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 () => {
|
Deno.test("TextDelimiterStream handles discard", async () => {
|
||||||
const delimStream = new TextDelimiterStream("foo", {
|
const delimStream = new TextDelimiterStream("foo", {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
import { assert, assertEquals } from "@std/assert";
|
import { assert, assertEquals } from "@std/assert";
|
||||||
import { ignore } from "./_test_util.ts";
|
import { ignore } from "./_test_utils.ts";
|
||||||
import { createCapture } from "./create_capture.ts";
|
import { createCapture } from "./create_capture.ts";
|
||||||
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { assert } from "@std/assert/assert";
|
import { assert } from "@std/assert/assert";
|
||||||
import { createTextureWithData } from "./texture_with_data.ts";
|
import { createTextureWithData } from "./texture_with_data.ts";
|
||||||
import { ignore } from "./_test_util.ts";
|
import { ignore } from "./_test_utils.ts";
|
||||||
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
ignore,
|
ignore,
|
||||||
|
Loading…
Reference in New Issue
Block a user