func (s *UtilSuite) TestReplaceDirectory(c *gc.C) { deps := s.stub err := internal.ReplaceDirectory("target_dir", "source_dir", deps) c.Assert(err, jc.ErrorIsNil) s.stub.CheckCallNames(c, "RemoveDir", "Move") }
func (deps *contextDeps) ReplaceDirectory(tgt, src string) error { return internal.ReplaceDirectory(tgt, src, deps) }