(
ctx: Arc<Mutex<SessionContext>>,
rt: &Runtime,
path: &str,
options: CsvReadOptions,
)
| 31 | |
| 32 | #[expect(clippy::needless_pass_by_value)] |
| 33 | fn load_csv( |
| 34 | ctx: Arc<Mutex<SessionContext>>, |
| 35 | rt: &Runtime, |
| 36 | path: &str, |
| 37 | options: CsvReadOptions, |
| 38 | ) { |
| 39 | let df = rt.block_on(ctx.lock().read_csv(path, options)).unwrap(); |
| 40 | black_box(rt.block_on(df.collect()).unwrap()); |
| 41 | } |
| 42 | |
| 43 | fn create_context() -> Result<Arc<Mutex<SessionContext>>> { |
| 44 | let ctx = SessionContext::new(); |
no test coverage detected
searching dependent graphs…