()
| 30 | // for upcoming FFI test expansions. |
| 31 | #[cfg_attr(not(feature = "integration-tests"), expect(dead_code))] |
| 32 | pub fn ctx_and_codec() -> (Arc<SessionContext>, FFI_LogicalExtensionCodec) { |
| 33 | let ctx = Arc::new(SessionContext::default()); |
| 34 | let task_ctx_provider = Arc::clone(&ctx) as Arc<dyn TaskContextProvider>; |
| 35 | let task_ctx_provider = FFI_TaskContextProvider::from(&task_ctx_provider); |
| 36 | let codec = FFI_LogicalExtensionCodec::new( |
| 37 | Arc::new(DefaultLogicalExtensionCodec {}), |
| 38 | None, |
| 39 | task_ctx_provider, |
| 40 | ); |
| 41 | |
| 42 | (ctx, codec) |
| 43 | } |
no test coverage detected
searching dependent graphs…