Struct tendermint_testgen::tester::TestEnv[][src]

pub struct TestEnv { /* fields omitted */ }
Expand description

A test environment, which is essentially a wrapper around some directory, with some utility functions operating relative to that directory.

Implementations

Read a file from a path relative to the environment current dir into a string

Write a file to a path relative to the environment current dir

Parse a file from a path relative to the environment current dir as the given type

Copy a file from the path outside environment into the environment current dir Returns None if copying was not successful

Copy a file from the path outside environment into the environment current dir Assigns the file a new_name in the current environment Returns None if copying was not successful

Copy a file from the path relative to the other environment into the environment current dir Returns None if copying was not successful

Copy a file from the path relative to the other environment into the environment current dir Assigns the file a new_name in the current environment Returns None if copying was not successful

Remove a file from a path relative to the environment current dir

Convert a relative path to the full path from the test root Return None if the full path can’t be formed

Convert a full path to the path relative to the test root Returns None if the full path doesn’t contain test root as prefix

Convert a relative path to the full path from the test root, canonicalized Returns None the full path can’t be formed

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.