Exemple #1
0
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")
}
Exemple #2
0
func (deps *contextDeps) ReplaceDirectory(tgt, src string) error {
	return internal.ReplaceDirectory(tgt, src, deps)
}