Struct chill::testing::FakeServer [] [src]

pub struct FakeServer {
    // some fields omitted
}

Runs a CouchDB server process suitable for testing.

The FakeServer type is a RAII wrapper for a CouchDB server process. The server remains up and running until the FakeServer instance drops—or until a server error occurs.

The server's underlying storage persists to the system's default temporary directory (e.g., /tmp) and is deleted when the FakeServer instance drops.

Methods

impl FakeServer
[src]

fn new() -> Result<FakeServerError>

Spawns a CouchDB server process.

fn uri(&self) -> &str

Returns the CouchDB server URI.