summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/bench/http/deno_http_flash_ops_spawn.js2
-rw-r--r--cli/bench/http/deno_http_flash_spawn.js2
-rw-r--r--cli/bench/http/deno_http_native_headers.js2
-rw-r--r--cli/bench/http/deno_http_ops.js2
-rw-r--r--cli/bench/http/node_reactdom_ssr.js2
-rw-r--r--cli/bench/napi/bench.js2
-rw-r--r--cli/bench/stdio/stdio.js3
-rw-r--r--cli/cache/parsed_source.rs2
-rw-r--r--cli/js.rs2
-rw-r--r--cli/lsp/client.rs2
-rw-r--r--cli/ops/bench.rs16
-rw-r--r--cli/tests/unit/abort_controller_test.ts2
-rw-r--r--cli/tests/unit/command_test.ts3
-rw-r--r--cli/tests/unit/dom_exception_test.ts2
-rw-r--r--cli/tests/unit/fs_events_test.ts3
-rw-r--r--cli/tests/unit/network_interfaces_test.ts2
-rw-r--r--cli/tests/unit/opcall_test.ts2
-rw-r--r--cli/tests/unit/path_from_url_test.ts2
-rw-r--r--cli/tests/unit/read_text_file_test.ts2
-rw-r--r--cli/tests/unit/ref_unref_test.ts2
-rw-r--r--cli/tests/unit/structured_clone_test.ts2
-rw-r--r--cli/tests/unit/version_test.ts2
-rw-r--r--cli/tests/unit/wasm_test.ts2
-rw-r--r--cli/tests/unit/webcrypto_test.ts2
-rw-r--r--cli/tests/unit/webgpu_test.ts2
-rw-r--r--cli/tests/unit/write_text_file_test.ts2
-rw-r--r--cli/tools/coverage/merge.rs3
-rw-r--r--cli/tools/coverage/range_tree.rs3
-rw-r--r--cli/util/console.rs2
-rw-r--r--cli/util/path.rs2
-rw-r--r--cli/worker.rs2
31 files changed, 70 insertions, 11 deletions
diff --git a/cli/bench/http/deno_http_flash_ops_spawn.js b/cli/bench/http/deno_http_flash_ops_spawn.js
index 6ee39a84a..b9d11462f 100644
--- a/cli/bench/http/deno_http_flash_ops_spawn.js
+++ b/cli/bench/http/deno_http_flash_ops_spawn.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
if (Deno.build.os !== "linux") {
throw new Error("SO_REUSEPORT is only supported on Linux");
}
diff --git a/cli/bench/http/deno_http_flash_spawn.js b/cli/bench/http/deno_http_flash_spawn.js
index eb827b34b..e47acffc5 100644
--- a/cli/bench/http/deno_http_flash_spawn.js
+++ b/cli/bench/http/deno_http_flash_spawn.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
if (Deno.build.os !== "linux") {
throw new Error("SO_REUSEPORT is only supported on Linux");
}
diff --git a/cli/bench/http/deno_http_native_headers.js b/cli/bench/http/deno_http_native_headers.js
index 23ef1e060..7c1eaa583 100644
--- a/cli/bench/http/deno_http_native_headers.js
+++ b/cli/bench/http/deno_http_native_headers.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
const addr = Deno.args[0] || "127.0.0.1:4500";
const [hostname, port] = addr.split(":");
const listener = Deno.listen({ hostname, port: Number(port) });
diff --git a/cli/bench/http/deno_http_ops.js b/cli/bench/http/deno_http_ops.js
index f65b32170..3fd0bef31 100644
--- a/cli/bench/http/deno_http_ops.js
+++ b/cli/bench/http/deno_http_ops.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
const addr = Deno.args[0] || "127.0.0.1:4500";
const [hostname, port] = addr.split(":");
const tcp = Deno.listen({ hostname, port: Number(port) });
diff --git a/cli/bench/http/node_reactdom_ssr.js b/cli/bench/http/node_reactdom_ssr.js
index 5e784b946..f82b504d7 100644
--- a/cli/bench/http/node_reactdom_ssr.js
+++ b/cli/bench/http/node_reactdom_ssr.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
var Gd = Object.create;
var Ac = Object.defineProperty;
var Xd = Object.getOwnPropertyDescriptor;
diff --git a/cli/bench/napi/bench.js b/cli/bench/napi/bench.js
index 5917d3a28..63215a217 100644
--- a/cli/bench/napi/bench.js
+++ b/cli/bench/napi/bench.js
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { loadTestLibrary } from "../../../test_napi/common.js";
const lib = loadTestLibrary();
diff --git a/cli/bench/stdio/stdio.js b/cli/bench/stdio/stdio.js
index 1d11c273d..e53016df2 100644
--- a/cli/bench/stdio/stdio.js
+++ b/cli/bench/stdio/stdio.js
@@ -1,5 +1,6 @@
-// From https://github.com/just-js/benchmarks/tree/main/01-stdio
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+//
+// From https://github.com/just-js/benchmarks/tree/main/01-stdio
const blocksize = parseInt(Deno.args[0] || 65536);
const buf = new Uint8Array(blocksize);
diff --git a/cli/cache/parsed_source.rs b/cli/cache/parsed_source.rs
index 28547dcf6..cef33e354 100644
--- a/cli/cache/parsed_source.rs
+++ b/cli/cache/parsed_source.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
use std::collections::HashMap;
use std::path::Path;
use std::path::PathBuf;
diff --git a/cli/js.rs b/cli/js.rs
index 4bf3da627..06a6a5fd9 100644
--- a/cli/js.rs
+++ b/cli/js.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
use deno_core::Snapshot;
use log::debug;
use once_cell::sync::Lazy;
diff --git a/cli/lsp/client.rs b/cli/lsp/client.rs
index 25c97d9d5..b39678667 100644
--- a/cli/lsp/client.rs
+++ b/cli/lsp/client.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
use std::future::Future;
use std::pin::Pin;
use std::sync::Arc;
diff --git a/cli/ops/bench.rs b/cli/ops/bench.rs
index 9b70cfa79..2181a139c 100644
--- a/cli/ops/bench.rs
+++ b/cli/ops/bench.rs
@@ -1,6 +1,9 @@
-use crate::tools::bench::BenchDescription;
-use crate::tools::bench::BenchEvent;
-use crate::tools::test::TestFilter;
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
+use std::sync::atomic::AtomicUsize;
+use std::sync::atomic::Ordering;
+use std::time;
+
use deno_core::error::generic_error;
use deno_core::error::AnyError;
use deno_core::op;
@@ -12,12 +15,13 @@ use deno_runtime::permissions::ChildPermissionsArg;
use deno_runtime::permissions::PermissionsContainer;
use serde::Deserialize;
use serde::Serialize;
-use std::sync::atomic::AtomicUsize;
-use std::sync::atomic::Ordering;
-use std::time;
use tokio::sync::mpsc::UnboundedSender;
use uuid::Uuid;
+use crate::tools::bench::BenchDescription;
+use crate::tools::bench::BenchEvent;
+use crate::tools::test::TestFilter;
+
pub fn init(
sender: UnboundedSender<BenchEvent>,
filter: TestFilter,
diff --git a/cli/tests/unit/abort_controller_test.ts b/cli/tests/unit/abort_controller_test.ts
index 6b7bea899..2df953773 100644
--- a/cli/tests/unit/abort_controller_test.ts
+++ b/cli/tests/unit/abort_controller_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert, assertEquals } from "./test_util.ts";
Deno.test(function basicAbortController() {
diff --git a/cli/tests/unit/command_test.ts b/cli/tests/unit/command_test.ts
index 2a0562c93..e7f940535 100644
--- a/cli/tests/unit/command_test.ts
+++ b/cli/tests/unit/command_test.ts
@@ -1,4 +1,5 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import {
assert,
assertEquals,
diff --git a/cli/tests/unit/dom_exception_test.ts b/cli/tests/unit/dom_exception_test.ts
index b6b6a4440..d0a0b8a94 100644
--- a/cli/tests/unit/dom_exception_test.ts
+++ b/cli/tests/unit/dom_exception_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import {
assertEquals,
assertNotEquals,
diff --git a/cli/tests/unit/fs_events_test.ts b/cli/tests/unit/fs_events_test.ts
index 2888a05f8..cdfb67657 100644
--- a/cli/tests/unit/fs_events_test.ts
+++ b/cli/tests/unit/fs_events_test.ts
@@ -1,4 +1,5 @@
-// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert, assertEquals, assertThrows, delay } from "./test_util.ts";
// TODO(ry) Add more tests to specify format.
diff --git a/cli/tests/unit/network_interfaces_test.ts b/cli/tests/unit/network_interfaces_test.ts
index a0e6e691a..287b7d421 100644
--- a/cli/tests/unit/network_interfaces_test.ts
+++ b/cli/tests/unit/network_interfaces_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert } from "./test_util.ts";
Deno.test(
diff --git a/cli/tests/unit/opcall_test.ts b/cli/tests/unit/opcall_test.ts
index 970731855..61c3c8849 100644
--- a/cli/tests/unit/opcall_test.ts
+++ b/cli/tests/unit/opcall_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert, assertStringIncludes, unreachable } from "./test_util.ts";
Deno.test(async function sendAsyncStackTrace() {
diff --git a/cli/tests/unit/path_from_url_test.ts b/cli/tests/unit/path_from_url_test.ts
index f375d84f4..9842c29c2 100644
--- a/cli/tests/unit/path_from_url_test.ts
+++ b/cli/tests/unit/path_from_url_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assertEquals, assertThrows } from "./test_util.ts";
// @ts-expect-error TypeScript (as of 3.7) does not support indexing namespaces by symbol
diff --git a/cli/tests/unit/read_text_file_test.ts b/cli/tests/unit/read_text_file_test.ts
index 5e455c583..e78276dde 100644
--- a/cli/tests/unit/read_text_file_test.ts
+++ b/cli/tests/unit/read_text_file_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import {
assert,
assertEquals,
diff --git a/cli/tests/unit/ref_unref_test.ts b/cli/tests/unit/ref_unref_test.ts
index da6e95efc..7ce72a170 100644
--- a/cli/tests/unit/ref_unref_test.ts
+++ b/cli/tests/unit/ref_unref_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assertNotEquals, execCode } from "./test_util.ts";
Deno.test("[unrefOp] unref'ing invalid ops does not have effects", async () => {
diff --git a/cli/tests/unit/structured_clone_test.ts b/cli/tests/unit/structured_clone_test.ts
index c60b38a8a..722c9c8cc 100644
--- a/cli/tests/unit/structured_clone_test.ts
+++ b/cli/tests/unit/structured_clone_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert, assertEquals, assertThrows } from "./test_util.ts";
// Basic tests for the structured clone algorithm. Mainly tests TypeScript
diff --git a/cli/tests/unit/version_test.ts b/cli/tests/unit/version_test.ts
index 3b371a2bc..55a4bc6c9 100644
--- a/cli/tests/unit/version_test.ts
+++ b/cli/tests/unit/version_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert, assertEquals } from "./test_util.ts";
Deno.test(function version() {
diff --git a/cli/tests/unit/wasm_test.ts b/cli/tests/unit/wasm_test.ts
index 03ed0e298..73d243de8 100644
--- a/cli/tests/unit/wasm_test.ts
+++ b/cli/tests/unit/wasm_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert, assertEquals, assertRejects } from "./test_util.ts";
// The following blob can be created by taking the following s-expr and pass
diff --git a/cli/tests/unit/webcrypto_test.ts b/cli/tests/unit/webcrypto_test.ts
index 86d9f38ab..c522bf1e6 100644
--- a/cli/tests/unit/webcrypto_test.ts
+++ b/cli/tests/unit/webcrypto_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import {
assert,
assertEquals,
diff --git a/cli/tests/unit/webgpu_test.ts b/cli/tests/unit/webgpu_test.ts
index c903736f8..decceb0f9 100644
--- a/cli/tests/unit/webgpu_test.ts
+++ b/cli/tests/unit/webgpu_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import { assert, assertEquals } from "./test_util.ts";
let isCI: boolean;
diff --git a/cli/tests/unit/write_text_file_test.ts b/cli/tests/unit/write_text_file_test.ts
index ee9cac177..ce179ab99 100644
--- a/cli/tests/unit/write_text_file_test.ts
+++ b/cli/tests/unit/write_text_file_test.ts
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
import {
assert,
assertEquals,
diff --git a/cli/tools/coverage/merge.rs b/cli/tools/coverage/merge.rs
index 7fe382d24..29d26da3c 100644
--- a/cli/tools/coverage/merge.rs
+++ b/cli/tools/coverage/merge.rs
@@ -1,6 +1,7 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+//
// Forked from https://github.com/demurgos/v8-coverage/tree/d0ca18da8740198681e0bc68971b0a6cdb11db3e/rust
// Copyright 2021 Charles Samborski. All rights reserved. MIT license.
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use super::json_types::CoverageRange;
use super::json_types::FunctionCoverage;
diff --git a/cli/tools/coverage/range_tree.rs b/cli/tools/coverage/range_tree.rs
index 19b3257f8..8b3d36cd8 100644
--- a/cli/tools/coverage/range_tree.rs
+++ b/cli/tools/coverage/range_tree.rs
@@ -1,6 +1,7 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+//
// Forked from https://github.com/demurgos/v8-coverage/tree/d0ca18da8740198681e0bc68971b0a6cdb11db3e/rust
// Copyright 2021 Charles Samborski. All rights reserved. MIT license.
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use super::json_types::CoverageRange;
use std::iter::Peekable;
diff --git a/cli/util/console.rs b/cli/util/console.rs
index c36b274db..ac78ca4df 100644
--- a/cli/util/console.rs
+++ b/cli/util/console.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
use deno_runtime::ops::tty::ConsoleSize;
/// Gets the console size.
diff --git a/cli/util/path.rs b/cli/util/path.rs
index 6df982f4e..76e2a1b6f 100644
--- a/cli/util/path.rs
+++ b/cli/util/path.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
use std::borrow::Cow;
use std::path::Path;
use std::path::PathBuf;
diff --git a/cli/worker.rs b/cli/worker.rs
index 2f8a9b687..7e0616650 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
use std::path::PathBuf;
use std::rc::Rc;
use std::sync::Arc;