#![deny(missing_docs)]
#![deny(warnings)]
#[cfg(doc)]
use mockall::*;
#[cfg(doc)]
#[automock]
pub trait Foo {
fn foo(&self, x: i32, y: i16) -> i32;
fn bar(&self, x: i32) -> &i32;
fn baz(&mut self, x: i32) -> &mut i32;
fn bean(&self) -> &'static i32;
fn bang(x: i32) -> i32;
}
pub trait Bah {
fn bah(&self);
}
#[cfg(doc)]
mock! {
pub Boo {
fn boo(&self);
}
trait Bah {
fn bah(&self);
}
}
#[cfg(doc)]
#[automock(mod mock_ffi;)]
extern "C" {
pub fn ffi_func();
}
#[cfg(all(doc, feature = "nightly"))]
#[automock]
mod a_module {
pub fn modfunc() {
unimplemented!()
}
}