func TestChangesDirsEmpty(t *testing.T) {
	src, err := ioutil.TempDir("", "docker-changes-test")
	if err != nil {
		t.Fatal(err)
	}
	defer os.RemoveAll(src)
	createSampleDir(t, src)
	dst := src + "-copy"
	if err := copyDir(src, dst); err != nil {
		t.Fatal(err)
	}
	defer os.RemoveAll(dst)
	changes, err := ChangesDirs(dst, src)
	if err != nil {
		t.Fatal(err)
	}

	if len(changes) != 0 {
		t.Fatalf("Reported changes for identical dirs: %v", changes)
	}
	os.RemoveAll(src)
	os.RemoveAll(dst)
}
// Create an directory, copy it, make sure we report no changes between the two
Create an directory, copy it, make sure we report no changes between the two
// Create an directory copy it make sure we report no changes between the two
func TestChangesDirsEmpty(t *testing.T) {
	src, err := ioutil.TempDir("", "docker-changes-test")
	if err != nil {
		t.Fatal(err)
	}
	defer os.RemoveAll(src)
	createSampleDir(t, src)
	dst := src + "-copy"
	if err := copyDir(src, dst); err != nil {
		t.Fatal(err)
	}
	defer os.RemoveAll(dst)
	changes, err := ChangesDirs(dst, src)
	if err != nil {
		t.Fatal(err)
	}
	if len(changes) != 0 {
		t.Fatalf("Reported changes for identical dirs: %v", changes)
	}
	os.RemoveAll(src)
	os.RemoveAll(dst)
}
func TestChangesDirsEmpty ( t * testing . T ) { src , err := ioutil . TempDir ( " " , " " ) if err != nil { t . Fatal ( err ) } defer os . RemoveAll ( src ) createSampleDir ( t , src ) dst := src + " " if err := copyDir ( src , dst ) ; err != nil { t . Fatal ( err ) } defer os . RemoveAll ( dst ) changes , err := ChangesDirs ( dst , src ) if err != nil { t . Fatal ( err ) } if len ( changes ) != 0 { t . Fatalf ( " " , changes ) } os . RemoveAll ( src ) os . RemoveAll ( dst ) }
Create an directory, copy it, make sure we report no changes between the two
Create an directory copy it make sure we report no changes between the two