ntest_timeout 0.3.2

Timeout attribute for the ntest framework.
docs.rs failed to build ntest_timeout-0.3.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: ntest_timeout-0.9.2

NTest Timeout

Part of the NTest library. Do not use this lib on it's own since it depends on the NTest library. Add the timeout attribute to the rust test framework using procedural macros.

Examples

This example will not panic:

#[test]
#[timeout(100)]
fn no_timeout() {
    let fifty_millis = time::Duration::from_millis(50);
    thread::sleep(fifty_millis);
}

This example will panic. The function panics after 10 milliseconds:

#[test]
#[timeout(10)]
#[should_panic]
fn timeout() {    
	let fifty_millis = time::Duration::from_millis(50);    		
	thread::sleep(fifty_millis);}rust
}

For more examples and information read the documentation.