keyhog-sources 0.5.39

keyhog-sources: pluggable input backends for KeyHog (git, S3, Docker, Web)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! GitDiffSource plugin name contract.

#[cfg(feature = "git")]
#[test]
fn git_diff_source_name() {
    use keyhog_core::Source;
    use keyhog_sources::GitDiffSource;
    let source = GitDiffSource::new(std::path::PathBuf::from("."), "main");
    assert_eq!(source.name(), "git-diff");
}

#[cfg(not(feature = "git"))]
#[test]
fn git_diff_name_requires_git() {
    assert!(!cfg!(feature = "git"));
}