MCPcopy Create free account
hub / github.com/apache/datafusion / with_error

Method with_error

datafusion/datasource/src/morsel/mocks.rs:358–361  ·  view source on GitHub ↗

Configure a failing I/O future for this pending planner.

(mut self, message: impl Into<String>)

Source from the content-addressed store, hash-verified

356
357 /// Configure a failing I/O future for this pending planner.
358 pub(crate) fn with_error(mut self, message: impl Into<String>) -> Self {
359 self.result = Err(MockError(message.into()));
360 self
361 }
362
363 /// Build a `MockPlanBuilder` containing only this pending planner.
364 pub(crate) fn build(self) -> MockPlanBuilder {

Callers 1

morsel_io_errorFunction · 0.45

Calls 2

MockErrorClass · 0.85
intoMethod · 0.45

Tested by

no test coverage detected