Skip to content

Commit

Permalink
test[rust]: Fix test warnings (#4626)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Aug 31, 2022
1 parent 9716387 commit e047dc6
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 17 deletions.
6 changes: 0 additions & 6 deletions polars/polars-arrow/src/kernels/sorted_join/left.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,4 @@ mod test {
]
)
}

#[test]
fn test_left_join_threaded() {
let lhs = &[0, 1, 1, 2, 3, 5];
let rhs = &[0, 1, 1, 3, 4];
}
}
1 change: 1 addition & 0 deletions polars/polars-core/src/chunked_array/ops/chunkops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ impl<T: PolarsObject> ObjectChunked<T> {

#[cfg(test)]
mod test {
#[cfg(feature = "dtype-categorical")]
use crate::prelude::*;

#[test]
Expand Down
1 change: 1 addition & 0 deletions polars/polars-core/src/datatypes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,7 @@ pub const NULL_DTYPE: DataType = DataType::Int32;

#[cfg(test)]
mod test {
#[cfg(feature = "dtype-categorical")]
use super::*;

#[test]
Expand Down
1 change: 1 addition & 0 deletions polars/polars-core/src/series/from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ impl IntoSeries for Series {

#[cfg(test)]
mod test {
#[cfg(feature = "dtype-u8")]
use super::*;

#[test]
Expand Down
8 changes: 0 additions & 8 deletions polars/polars-lazy/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,6 @@ impl LazyFrame {
}
}

#[cfg(test)]
pub(crate) fn into_alp(self) -> (Node, Arena<AExpr>, Arena<ALogicalPlan>) {
let mut expr_arena = Arena::with_capacity(64);
let mut lp_arena = Arena::with_capacity(32);
let root = to_alp(self.logical_plan, &mut expr_arena, &mut lp_arena).unwrap();
(root, expr_arena, lp_arena)
}

/// Set allowed optimizations
pub fn with_optimizations(mut self, opt_state: OptState) -> Self {
self.opt_state = opt_state;
Expand Down
1 change: 0 additions & 1 deletion polars/polars-lazy/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ fn load_df() -> DataFrame {

use std::io::Cursor;
use std::iter::FromIterator;
use std::sync::Mutex;

use optimization_checks::*;
use polars_core::chunked_array::builder::get_list_builder;
Expand Down
3 changes: 1 addition & 2 deletions polars/polars-lazy/src/tests/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use polars_core::series::ops::NullBehavior;
use polars_time::prelude::DateMethods;

use super::*;
use crate::dsl::AggExpr::List;

#[test]
fn test_lazy_with_column() {
Expand All @@ -20,7 +19,7 @@ fn test_lazy_with_column() {
#[test]
fn test_lazy_exec() {
let df = get_df();
let new = df
let _new = df
.clone()
.lazy()
.select([col("sepal.width"), col("variety")])
Expand Down

0 comments on commit e047dc6

Please sign in to comment.