init_test

Function init_test 

Source
pub fn init_test()
Available on crate feature deploy only.
Expand description

Enables “test mode” for Hydro, which makes it possible to compile Hydro programs written inside a #[cfg(test)] module. This should be enabled in a global [ctor] hook.

§Example

#[cfg(test)]
mod test_init {
   #[ctor::ctor]
   fn init() {
       hydro_lang::deploy::init_test();
   }
}