Skip to content

Commit

Permalink
chore: rename cli/bench/fixtures to cli/bench/testdata (denoland#13363)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 13, 2022
1 parent 50e8ab8 commit 282c235
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 106 deletions.
2 changes: 1 addition & 1 deletion cli/bench/deno_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function benchRead128k() {
return benchAsync(
"read_128k",
5e4,
() => Deno.readFile("./cli/bench/fixtures/128k.bin"),
() => Deno.readFile("./cli/bench/testdata/128k.bin"),
);
}

Expand Down
14 changes: 7 additions & 7 deletions cli/bench/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ use std::time::Duration;
use test_util::lsp::LspClient;
use test_util::lsp::LspResponseError;

static FIXTURE_CODE_LENS_TS: &str = include_str!("fixtures/code_lens.ts");
static FIXTURE_DB_TS: &str = include_str!("fixtures/db.ts");
static FIXTURE_DB_MESSAGES: &[u8] = include_bytes!("fixtures/db_messages.json");
static FIXTURE_CODE_LENS_TS: &str = include_str!("testdata/code_lens.ts");
static FIXTURE_DB_TS: &str = include_str!("testdata/db.ts");
static FIXTURE_DB_MESSAGES: &[u8] = include_bytes!("testdata/db_messages.json");
static FIXTURE_INIT_JSON: &[u8] =
include_bytes!("fixtures/initialize_params.json");
include_bytes!("testdata/initialize_params.json");

#[derive(Debug, Deserialize)]
enum FixtureType {
Expand Down Expand Up @@ -57,7 +57,7 @@ fn bench_big_file_edits(deno_exe: &Path) -> Result<Duration, AnyError> {
"textDocument/didOpen",
json!({
"textDocument": {
"uri": "file:https:///fixtures/db.ts",
"uri": "file:https:///testdata/db.ts",
"languageId": "typescript",
"version": 1,
"text": FIXTURE_DB_TS
Expand Down Expand Up @@ -137,7 +137,7 @@ fn bench_code_lens(deno_exe: &Path) -> Result<Duration, AnyError> {
"textDocument/didOpen",
json!({
"textDocument": {
"uri": "file:https:///fixtures/code_lens.ts",
"uri": "file:https:///testdata/code_lens.ts",
"languageId": "typescript",
"version": 1,
"text": FIXTURE_CODE_LENS_TS
Expand Down Expand Up @@ -167,7 +167,7 @@ fn bench_code_lens(deno_exe: &Path) -> Result<Duration, AnyError> {
"textDocument/codeLens",
json!({
"textDocument": {
"uri": "file:https:///fixtures/code_lens.ts"
"uri": "file:https:///testdata/code_lens.ts"
}
}),
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 282c235

Please sign in to comment.