Lines Matching defs:T
37 func newFinder(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams) *Finder {
41 func newFinderWithNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThrea…
49 func newFinderAndErr(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) …
62 func finderWithSameParams(t *testing.T, original *Finder) *Finder {
70 func finderAndErrorWithSameParams(t *testing.T, original *Finder) (*Finder, error) {
81 func write(t *testing.T, path string, content string, filesystem *fs.MockFs) {
90 func create(t *testing.T, path string, filesystem *fs.MockFs) {
94 func delete(t *testing.T, path string, filesystem *fs.MockFs) {
101 func removeAll(t *testing.T, path string, filesystem *fs.MockFs) {
108 func move(t *testing.T, oldPath string, newPath string, filesystem *fs.MockFs) {
115 func link(t *testing.T, newPath string, oldPath string, filesystem *fs.MockFs) {
126 func read(t *testing.T, path string, filesystem *fs.MockFs) string {
137 func modTime(t *testing.T, path string, filesystem *fs.MockFs) time.Time {
144 func setReadable(t *testing.T, path string, readable bool, filesystem *fs.MockFs) {
151 func setReadErr(t *testing.T, path string, readErr error, filesystem *fs.MockFs) {
158 func fatal(t *testing.T, message string) {
164 func assertSameResponse(t *testing.T, actual []string, expected []string) {
177 func assertSameStatCalls(t *testing.T, actual []string, expected []string) {
195 func assertSameReadDirCalls(t *testing.T, actual []string, expected []string) {
215 func runSimpleTest(t *testing.T, existentPaths []string, expectedMatches []string) {
244 func testAgainstSeveralThreadcounts(t *testing.T, tester func(t *testing.T, numThreads int)) {
260 func TestSingleFile(t *testing.T) {
267 func TestIncludeFiles(t *testing.T) {
274 func TestNestedDirectories(t *testing.T) {
281 func TestEmptyDirectory(t *testing.T) {
288 func TestEmptyPath(t *testing.T) {
308 func TestFilesystemRoot(t *testing.T) {
335 func TestNonexistentDir(t *testing.T) {
353 func TestExcludeDirs(t *testing.T) {
381 func TestPruneFiles(t *testing.T) {
413 func TestRootDir(t *testing.T) {
437 func TestUncachedDir(t *testing.T) {
464 func TestSearchingForFilesExcludedFromCache(t *testing.T) {
491 func TestRelativeFilePaths(t *testing.T) {
535 func TestRootDirsContainedInOtherRootDirs(t *testing.T) {
556 func TestFindFirst(t *testing.T) {
580 func TestConcurrentFindSameDirectory(t *testing.T) {
631 func TestConcurrentFindDifferentDirectories(t *testing.T) {
694 func TestStrangelyFormattedPaths(t *testing.T) {
719 func TestCorruptedCacheHeader(t *testing.T) {
743 func TestCanUseCache(t *testing.T) {
789 func TestCorruptedCacheBody(t *testing.T) {
853 func TestStatCalls(t *testing.T) {
876 func TestFileAdded(t *testing.T) {
918 func TestDirectoriesAdded(t *testing.T) {
962 func TestDirectoryAndSubdirectoryBothUpdated(t *testing.T) {
1002 func TestFileDeleted(t *testing.T) {
1042 func TestDirectoriesDeleted(t *testing.T) {
1097 func TestDirectoriesMoved(t *testing.T) {
1155 func TestDirectoriesSwapped(t *testing.T) {
1218 func runFsReplacementTest(t *testing.T, fs1 *fs.MockFs, fs2 *fs.MockFs) {
1270 func TestChangeOfDevice(t *testing.T) {
1281 func TestChangeOfUserOrHost(t *testing.T) {
1291 func TestConsistentCacheOrdering(t *testing.T) {
1343 func TestNumSyscallsOfSecondFind(t *testing.T) {
1373 func TestChangingParamsOfSecondFind(t *testing.T) {
1403 func TestSymlinkPointingToFile(t *testing.T) {
1439 func TestSymlinkPointingToDirectory(t *testing.T) {
1472 func TestAddPruneFile(t *testing.T) {
1510 func TestUpdatingDbIffChanged(t *testing.T) {
1569 func TestDirectoryNotPermitted(t *testing.T) {
1617 func TestFileNotPermitted(t *testing.T) {
1639 func TestCacheEntryPathUnexpectedError(t *testing.T) {