func assertExists(t *testing.T, path string) { … } func assertNotExists(t *testing.T, path string) { … } // assertDirEmpty verifies a directory either does not exist, or is empty. func assertDirEmpty(t *testing.T, path string) { … } func TestConfigDirCleaner(t *testing.T) { … }