Skip to content

Commit 286320f

Browse files
refactor: move the benchmark display helpers to the upload module
1 parent 753dc1f commit 286320f

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/cli/run/helpers/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pub(crate) mod benchmark_display;
21
mod download_file;
32
mod find_repository_root;
43
mod format_duration;

src/upload/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mod benchmark_display;
12
mod interfaces;
23
pub mod poll_results;
34
mod profile_archive;

src/upload/poll_results.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ use std::time::Duration;
44
use console::style;
55
use tokio::time::{Instant, sleep};
66

7+
use super::benchmark_display::{
8+
build_benchmark_table, build_comparison_table, build_detailed_summary,
9+
};
710
use crate::api_client::{
811
CodSpeedAPIClient, CompareRunsResponse, CompareRunsVars, FetchLocalRunResponse,
912
FetchLocalRunVars, RunStatus,
1013
};
11-
use crate::cli::run::helpers::benchmark_display::{
12-
build_benchmark_table, build_comparison_table, build_detailed_summary,
13-
};
1414
use crate::local_logger::{start_spinner, stop_spinner};
1515
use crate::prelude::*;
1616

src/cli/run/helpers/snapshots/codspeed_runner__cli__run__helpers__benchmark_display__tests__benchmark_table_formatting.snap renamed to src/upload/snapshots/codspeed_runner__upload__benchmark_display__tests__benchmark_table_formatting.snap

File renamed without changes.

0 commit comments

Comments
 (0)