Skip to content

Commit 4b0494e

Browse files
committed
Remove redundant test_ prefix from tests
1 parent a4503a4 commit 4b0494e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

compiler/base/orchestrator/src/coordinator.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ mod tests {
14311431

14321432
#[tokio::test]
14331433
#[snafu::report]
1434-
async fn test_execute_response() -> Result<()> {
1434+
async fn execute_response() -> Result<()> {
14351435
let coordinator = new_coordinator().await;
14361436

14371437
let response = coordinator
@@ -1453,7 +1453,7 @@ mod tests {
14531453

14541454
#[tokio::test]
14551455
#[snafu::report]
1456-
async fn test_execute_mode() -> Result<()> {
1456+
async fn execute_mode() -> Result<()> {
14571457
let params = [
14581458
(Mode::Debug, "[unoptimized + debuginfo]"),
14591459
(Mode::Release, "[optimized]"),
@@ -1483,7 +1483,7 @@ mod tests {
14831483

14841484
#[tokio::test]
14851485
#[snafu::report]
1486-
async fn test_execute_edition() -> Result<()> {
1486+
async fn execute_edition() -> Result<()> {
14871487
let params = [
14881488
(r#"fn x() { let dyn = true; }"#, [true, false, false]),
14891489
(r#"fn x() { u16::try_from(1u8); }"#, [false, false, true]),
@@ -1522,7 +1522,7 @@ mod tests {
15221522

15231523
#[tokio::test]
15241524
#[snafu::report]
1525-
async fn test_execute_crate_type() -> Result<()> {
1525+
async fn execute_crate_type() -> Result<()> {
15261526
let params = [
15271527
(CrateType::Binary, "Running `target"),
15281528
(
@@ -1559,7 +1559,7 @@ mod tests {
15591559

15601560
#[tokio::test]
15611561
#[snafu::report]
1562-
async fn test_execute_tests() -> Result<()> {
1562+
async fn execute_tests() -> Result<()> {
15631563
let code = r#"fn main() {} #[test] fn test() {}"#;
15641564

15651565
let params = [(false, "Running `"), (true, "Running unittests")];
@@ -1589,7 +1589,7 @@ mod tests {
15891589

15901590
#[tokio::test]
15911591
#[snafu::report]
1592-
async fn test_execute_backtrace() -> Result<()> {
1592+
async fn execute_backtrace() -> Result<()> {
15931593
let code = r#"fn main() { panic!("Disco"); }"#;
15941594

15951595
let params = [
@@ -1703,7 +1703,7 @@ mod tests {
17031703

17041704
#[tokio::test]
17051705
#[snafu::report]
1706-
async fn test_compile_response() -> Result<()> {
1706+
async fn compile_response() -> Result<()> {
17071707
let coordinator = new_coordinator().await;
17081708

17091709
let response = coordinator
@@ -1723,7 +1723,7 @@ mod tests {
17231723

17241724
#[tokio::test]
17251725
#[snafu::report]
1726-
async fn test_compile_streaming() -> Result<()> {
1726+
async fn compile_streaming() -> Result<()> {
17271727
let coordinator = new_coordinator().await;
17281728

17291729
let ActiveCompilation {
@@ -1757,7 +1757,7 @@ mod tests {
17571757

17581758
#[tokio::test]
17591759
#[snafu::report]
1760-
async fn test_compile_edition() -> Result<()> {
1760+
async fn compile_edition() -> Result<()> {
17611761
for edition in Edition::ALL {
17621762
let coordinator = new_coordinator().await;
17631763

@@ -1780,7 +1780,7 @@ mod tests {
17801780

17811781
#[tokio::test]
17821782
#[snafu::report]
1783-
async fn test_compile_assembly() -> Result<()> {
1783+
async fn compile_assembly() -> Result<()> {
17841784
let coordinator = new_coordinator().await;
17851785

17861786
let response = coordinator
@@ -1805,7 +1805,7 @@ mod tests {
18051805

18061806
#[tokio::test]
18071807
#[snafu::report]
1808-
async fn test_compile_hir() -> Result<()> {
1808+
async fn compile_hir() -> Result<()> {
18091809
let coordinator = new_coordinator().await;
18101810

18111811
let response = coordinator
@@ -1824,7 +1824,7 @@ mod tests {
18241824

18251825
#[tokio::test]
18261826
#[snafu::report]
1827-
async fn test_compile_llvm_ir() -> Result<()> {
1827+
async fn compile_llvm_ir() -> Result<()> {
18281828
let coordinator = new_coordinator().await;
18291829

18301830
let response = coordinator
@@ -1843,7 +1843,7 @@ mod tests {
18431843

18441844
#[tokio::test]
18451845
#[snafu::report]
1846-
async fn test_compile_wasm() -> Result<()> {
1846+
async fn compile_wasm() -> Result<()> {
18471847
// cargo-wasm only exists inside the container
18481848
let coordinator = Coordinator::new_docker().await;
18491849

@@ -1866,7 +1866,7 @@ mod tests {
18661866

18671867
#[tokio::test]
18681868
#[snafu::report]
1869-
async fn test_compile_clears_old_main_rs() -> Result<()> {
1869+
async fn compile_clears_old_main_rs() -> Result<()> {
18701870
let coordinator = new_coordinator().await;
18711871

18721872
// Create a main.rs file
@@ -1917,7 +1917,7 @@ mod tests {
19171917

19181918
#[tokio::test]
19191919
#[snafu::report]
1920-
async fn test_still_usable_after_idle() -> Result<()> {
1920+
async fn still_usable_after_idle() -> Result<()> {
19211921
let mut coordinator = new_coordinator().await;
19221922

19231923
let req = ExecuteRequest {

0 commit comments

Comments
 (0)