Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectMatchingDirectories ¶
func ExpectMatchingDirectories(g *WithT, actualRoot, expectedRoot string)
TODO rewrite this as just doing the diff, so I can test that it fails at the right times too.
Types ¶
type Diff ¶
type Diff interface { Path() string FailedExpectation(g *WithT) }
func DiffDirectories ¶
func DiffDirectories(actual, expected string) (actualonly []string, expectedonly []string, different []Diff)
DiffDirectories walks the two given directories, recursively, and reports relative paths for any files that are:
(in actual but not expected, in expected but not actual, in both but different)
It ignores dot directories (e.g., `.git/`) and Emacs backups (e.g., `foo.yaml~`). It panics if it encounters any error apart from a file not found.
Click to show internal directories.
Click to hide internal directories.