// Compare entries in the leftDir against the rightDir and possibly
// missingEntries in the second.
Compare entries in the leftDir against the rightDir and possibly
missingEntries in the second.
// Compare entries in the leftDir against the rightDir and possibly // missingEntries in the second .
func compareDirectoryEntries(t *testing.T, leftDir Directory, rightDir Directory) {
	leftLinks, err := getAllLinksSortedByName(leftDir)
	assert.NoError(t, err)
	rightLinks, err := getAllLinksSortedByName(rightDir)
	assert.NoError(t, err)
	assert.Equal(t, len(leftLinks), len(rightLinks))
	for i, leftLink := range leftLinks {
		assert.Equal(t, leftLink, rightLinks[i]) 
	}
}
func compareDirectoryEntries ( t * testing . T , leftDir Directory , rightDir Directory ) { leftLinks , err := getAllLinksSortedByName ( leftDir ) assert . NoError ( t , err ) rightLinks , err := getAllLinksSortedByName ( rightDir ) assert . NoError ( t , err ) assert . Equal ( t , len ( leftLinks ) , len ( rightLinks ) ) for i , leftLink := range leftLinks { assert . Equal ( t , leftLink , rightLinks [ i ] ) } }
Compare entries in the leftDir against the rightDir and possibly
missingEntries in the second.
Compare entries in the leftDir against the rightDir and possibly missingEntries in the second .
// FIXME: Can we just compare the entire struct?