[][src]Struct stipulate::conf::TestConfig

pub struct TestConfig { /* fields omitted */ }

This struct represents all of the configuration for a test run.

It is essentially a smart pointer to an object of type Config, with some extra convenience methods about using it.

Implementations

impl TestConfig[src]

pub fn get_config(&self) -> &dyn Config[src]

Returns a reference to the config contained in here

pub fn get_config_mut(&mut self) -> &mut dyn Config[src]

Returns a mutable reference to the config contained in here

pub fn from_file(filename: &str) -> Result<TestConfig, Error>[src]

Loads a given filename into a configuration

See TestConfig::from_toml_values for information about what it can do.

pub fn from_toml_values(values: Value) -> Result<TestConfig, Error>[src]

Loads the configuration from the given parsed toml.

All keys and section headers should be lower-case (and it is case-sensitive).

The file should have one section header, whose name is the kind of test being run. The available options currently are "java" and "python".

Configuration options for java are at JavaConfig::from_toml.

Configuration options for python are at PythonConfig::from_toml.

Trait Implementations

impl Deref for TestConfig[src]

type Target = dyn Config

The resulting type after dereferencing.

impl DerefMut for TestConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.