Struct sqlness::ConfigBuilder
source · pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for Config.
Implementations§
source§impl ConfigBuilder
impl ConfigBuilder
pub fn case_dir(&mut self, value: String) -> &mut Self
sourcepub fn test_case_extension(&mut self, value: String) -> &mut Self
pub fn test_case_extension(&mut self, value: String) -> &mut Self
Default value: sql
sourcepub fn result_extension(&mut self, value: String) -> &mut Self
pub fn result_extension(&mut self, value: String) -> &mut Self
Default value: result
sourcepub fn interceptor_prefix(&mut self, value: String) -> &mut Self
pub fn interceptor_prefix(&mut self, value: String) -> &mut Self
Default value: -- SQLNESS
sourcepub fn env_config_file(&mut self, value: String) -> &mut Self
pub fn env_config_file(&mut self, value: String) -> &mut Self
Default value: config.toml
sourcepub fn fail_fast(&mut self, value: bool) -> &mut Self
pub fn fail_fast(&mut self, value: bool) -> &mut Self
Fail this run as soon as one case fails if true
sourcepub fn test_filter(&mut self, value: String) -> &mut Self
pub fn test_filter(&mut self, value: String) -> &mut Self
Test only matched testcases, default .*
Env is prepended before filename, eg {env}:{filename}
sourcepub fn env_filter(&mut self, value: String) -> &mut Self
pub fn env_filter(&mut self, value: String) -> &mut Self
Test only matched env, default .*
sourcepub fn follow_links(&mut self, value: bool) -> &mut Self
pub fn follow_links(&mut self, value: bool) -> &mut Self
Whether follow symbolic links when searching test case files. Defaults to “true” (follow symbolic links).
Trait Implementations§
source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
source§fn clone(&self) -> ConfigBuilder
fn clone(&self) -> ConfigBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more