mod fixture; use std::convert::TryFrom; use anyhow::Result; use git2::Repository; use git_trim::{ get_trim_plan, ClassifiedBranch, Git, LocalBranch, PlanParam, RemoteTrackingBranch, }; use fixture::{rc, test_default_param, Fixture}; fn fixture() -> Fixture { rc().append_fixture_trace( r#" git init origin origin < README.md git add README.md git commit -m "Initial commit" git branch develop master EOF git clone origin local local < PlanParam<'static> { PlanParam { bases: vec!["develop", "master"], // Need to set bases manually for git flow ..test_default_param() } } #[test] fn test_feature_to_develop() -> Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" # prepare awesome patch local < Result<()> { let guard = fixture().prepare( "local", r#" # prepare awesome patch local < Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" # prepare awesome patch local < Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" local < Result<()> { let guard = fixture().prepare( "local", r#" origin <