You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tests.rs
    path of file: ./repos/cargo-intraconv/src/candidate
    
    the code of the file until where you have to start completion: use super::*;

#[test]
fn candidate_from_line_ok_short() {
    fn helper(line: &str) {
        assert_eq!(
            Candidate::from_line(line).unwrap(),
            Candidate {
                inner: CandidateInner::from_line(line).unwrap()
            }
        );
    }

    // Testing spacing.
    helper("[name](mod1)");
    helper("  [name](mod1)");
    helper("\t[name](mod1)");
    helper("/// [name](mod1)");
    helper("///  [name](mod1)");
    helper("///\t[name](mod1)");
    helper(" /// [name](mod1)");
    helper("  /// [name](mod1)");
    helper("\t/// [name](mo
    
fn candidate_from_line_ok_long() {
    fn helper(line: &str) {
        assert_eq!(
            Candidate::from_line(line).unwrap(),
            Candidate {
                inner: CandidateInner::from_line(line).unwrap()
            }
        );
    }

    // Testing spacing.
    helper("[name]:mod1");
    helper("[name]: mod1");
    helper("[name]:  mod1");
    helper("[name]:\tmod1");
    helper("  [name]: mod1");
    helper("\t[name]: mod1");
    helper("/// [name]: mod1");
    helper("///  [name]: mod1");
    helper("///\t[name]: mod1");
    helper(" /// [name]: mod1");
    helper("  /// [name]: mod1");
    helper("\t/// [name]: mod1");

    // Testing bangs.
    helper("/// [name]: mod1");
    helper("//! [name]: mod1");

    // Testing code in links.
    helper("[`name`]: mod1");

    // Testing non-HTTP links
    helper("[name]: mod1/");
    helper("[name]: mod1/mod2");
    helper("[name]: mod1/mod2/struct.Type.html");
    helper("[name]: mod1/mod2/struct.Type.html#const.NAME");
    helper("[name]: mod1/mod2/#section");
    helper("[name]: mod1/mod2#section");
    helper("[name]: mod1/mod2/index.html#section");
    helper("[name]: mod1/mod2/index.html/#section");
    helper("[name]: ../mod1/mod2");
    helper("[name]: ./../mod1");

    // Testing HTTP links
    helper("[name]: https://docs.rs/regex/");
    helper("[name]: https://docs.rs/regex/1.0.33/regex/mod1/mod2");
    helper("[name]: https://github.com/poliorcetics/cargo-intraconv/issues/21");

    // Testing all sorts of characters in the link name.
    helper("[azertyuiop]: mod1");
    helper("[AZERTYUIOP]: mod1");
    helper("[@&é\"'(§è!çà)-]: mod1");
    helper("[#1234567890°_]: mod1");
    helper("[•ë“‘{¶«¡Çø}—]: mod1");
    helper("[Ÿ´„”’[å»ÛÁØ]–]: mod1");
    helper("[æÂê®†Úºîœπ]: mod1");
    helper("[ÆÅÊ‚™ŸªïŒ∏]: mod1");
    helper("[‡Ò∂ƒﬁÌÏÈ¬µ]: mod1");
    helper("[Ω∑∆·ﬂÎÍË|Ó]: mod1");
    helper("[‹≈©◊ß~]: mod1");
    helper("[›⁄¢√∫ı]: mod1");
    helper("[^$ù`,;:=<]: mod1");
    helper("[¨*%£?./+>]: mod1");
    helper("[ô€Ù@∞…÷≠≤]: mod1");
    helper("[Ô¥‰#¿•\\±≥]: mod1");
}