hosted-git-info 0.1.2

Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab
Documentation
use crate::HostedGitInfo;
use proptest::prelude::*;

proptest! {
    #[test]
    #[allow(unused_must_use)]
    fn doesnt_crash(s in "\\PC*") {
        HostedGitInfo::from_url(&s);
    }

    #[test]
    #[allow(unused_must_use)]
    fn doesnt_crash_from_random_github_shortcut(s in "github:\\PC*") {
        HostedGitInfo::from_url(&s);
    }

    #[test]
    #[allow(unused_must_use)]
    fn doesnt_crash_from_random_github_url_with_no_protocol(s in "\\PC*@github.com:\\PC*") {
        HostedGitInfo::from_url(&s);
    }

    #[test]
    #[allow(unused_must_use)]
    fn doesnt_crash_from_random_gitlab_shortcut(s in "gitlab:\\PC*") {
        HostedGitInfo::from_url(&s);
    }

    #[test]
    #[allow(unused_must_use)]
    fn doesnt_crash_from_random_gitlab_url_with_no_protocol(s in "\\PC*@gitlab.com:\\PC*") {
        HostedGitInfo::from_url(&s);
    }

    #[test]
    #[allow(unused_must_use)]
    fn doesnt_crash_from_random_bitbucket_shortcut(s in "bitbucket:\\PC*") {
        HostedGitInfo::from_url(&s);
    }

    #[test]
    #[allow(unused_must_use)]
    fn doesnt_crash_from_random_bitbucket_url_with_no_protocol(s in "\\PC*@bitbucket.org:\\PC*") {
        HostedGitInfo::from_url(&s);
    }
}