pub struct TestContextOptions {
pub with_clickhouse: bool,
pub with_mysql: bool,
pub with_prometheus: bool,
pub with_sqs: bool,
pub with_plugin: bool,
}Expand description
Options for creating a test context
Fields§
§with_clickhouse: boolWhether to create a ClickHouse database
with_mysql: boolWhether to create a MySQL database
with_prometheus: boolWhether to enable Prometheus metrics
with_sqs: boolWhether to create an SQS queue (requires ElasticMQ or SQS-compatible endpoint)
with_plugin: boolWhether to forward STREAMLING__PLUGIN__PATH to the streamling
subprocess (for tests that require plugin-provided sources, sinks, or UDFs).
Implementations§
Source§impl TestContextOptions
impl TestContextOptions
pub fn new() -> Self
pub fn with_clickhouse(self) -> Self
pub fn with_mysql(self) -> Self
pub fn with_prometheus(self) -> Self
pub fn with_sqs(self) -> Self
pub fn with_plugin(self) -> Self
Trait Implementations§
Source§impl Clone for TestContextOptions
impl Clone for TestContextOptions
Source§fn clone(&self) -> TestContextOptions
fn clone(&self) -> TestContextOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestContextOptions
impl Debug for TestContextOptions
Source§impl Default for TestContextOptions
impl Default for TestContextOptions
Source§fn default() -> TestContextOptions
fn default() -> TestContextOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestContextOptions
impl RefUnwindSafe for TestContextOptions
impl Send for TestContextOptions
impl Sync for TestContextOptions
impl Unpin for TestContextOptions
impl UnsafeUnpin for TestContextOptions
impl UnwindSafe for TestContextOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.