Struct couchdb::testing::FakeServer [] [src]

pub struct FakeServer {
    // some fields omitted
}

RAII wrapper for running a CouchDB server process.

The FakeServer type is provided for testing purposes. The database persists to the system's default temporary directory (e.g., /tmp) and is deleted when the FakeServer instance drops.

Methods

impl FakeServer

fn new() -> Result<FakeServer, Error>

Spawns a CouchDB server process.

fn uri(&self) -> &str

Gets the CouchDB server URI.