Skip to content

Repository files navigation

Crates.ioDocs.rsBuild Status

logo

Mocking framework for Rust (currently only nightly). See documentation for more.

#[mockable]mod hello_world {pubfnworld() -> &'staticstr{"world"}pubfnhello_world() -> String{format!("Hello {}!", world())}}#[test]fnmock_test(){
hello_world::world.mock_safe(|| MockResult::Return("mocking"));assert_eq!("Hello mocking!", hello_world::hello_world());}

About

Mocking framework for Rust

Topics

Resources

Stars

235 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages