Skip to content

Commit 4a8f5bd

Browse files
authored
Merge pull request #2745 from PsiACE/context-test
[test] apply the new test style to common-context
2 parents 344693f + 7c681bd commit 4a8f5bd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

common/context/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ license = "Apache-2.0"
66
publish = false
77
edition = "2021"
88

9+
[lib]
10+
doctest = false
11+
test = false
12+
913
[dependencies]
1014
common-arrow = {path = "../arrow"}
1115
common-base = {path = "../base"}

common/context/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,3 @@ pub use table_io_context::TableDataContext;
2020
pub use table_io_context::TableIOContext;
2121

2222
mod table_io_context;
23-
24-
#[cfg(test)]
25-
mod table_io_context_test;

common/context/src/table_io_context_test.rs renamed to common/context/tests/it/main.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,20 @@ use std::fmt::Debug;
1616
use std::sync::Arc;
1717

1818
use common_base::Runtime;
19+
use common_context::IOContext;
20+
use common_context::TableIOContext;
1921
use common_dal::DataAccessor;
2022
use common_dal::DataAccessorBuilder;
2123
use common_exception::ErrorCode;
2224
use common_exception::Result;
2325

24-
use crate::IOContext;
25-
use crate::TableIOContext;
26-
2726
/// A default DataAccessorBuilder impl.
2827
#[derive(Debug)]
2928
pub struct TestDataAccessorBuilder {}
3029

3130
impl DataAccessorBuilder for TestDataAccessorBuilder {
3231
fn build(&self) -> Result<Arc<dyn DataAccessor>> {
33-
// we do not use it in unit test
32+
// we do not use it in test
3433
todo!()
3534
}
3635
}

0 commit comments

Comments
 (0)