mod fixture; use std::collections::HashSet; use std::convert::TryFrom; use std::iter::FromIterator; use anyhow::Result; use git2::Repository; use git_trim::args::{Args, DeleteFilter, DeleteUnit, Scope}; use git_trim::config::{Config, ConfigValue}; use git_trim::Git; use fixture::{rc, Fixture}; fn fixture() -> Fixture { rc().append_fixture_trace( r#" git init origin origin < README.md git add README.md git commit -m "Initial commit" EOF git clone origin local "#, ) } #[test] fn test_bases_implicit_value() -> 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#" local < Result<()> { let guard = fixture().prepare( "local", r#" local <