pub mod commit_map {
use crate::{CommitMap, mock};
pub fn create() -> CommitMap {
let mut commit_map = CommitMap::new();
let change_feat = mock::change::create("^feat(.|\n)*$", "Feature", 2);
let change_fix = mock::change::create("^fix(.|\n)*$", "Fix", 3);
let commit_one = mock::commit::create("feat(scope): a test header");
let commit_two = mock::commit::create("feat(scope): a test header two");
let commit_three = mock::commit::create("fix(scope): a test header three");
commit_map.insert(&change_feat, commit_one).unwrap();
commit_map.insert(&change_feat, commit_two).unwrap();
commit_map.insert(&change_fix, commit_three).unwrap();
commit_map
}
}