I would like to keep test cases just in tests
module, then in docs comments, link to specific tests relevant to the APIs. I would like to have the generated docs can redirect user to the source code of test cases by clicking the links. How can it be achieved?
e.g.
/// description: ... [`test_hello`]
pub fn hello() {
}
#[cfg(test)]
mod tests {
#[test]
fn test_hello() { }
}