Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for shouldList (0.17 sec)

  1. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/PathVisitor.java

            this.fileSystem = fileSystem;
        }
    
        private boolean shouldVisit(FileTreeElement element) {
            return spec.isSatisfiedBy(element);
        }
    
        @Override
        public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
            FileVisitDetails details = getFileVisitDetails(dir, attrs);
            if (directoryDetailsHolder.size() == 0 || shouldVisit(details)) {
                directoryDetailsHolder.push(details);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. pkg/kubelet/secret/secret_manager_test.go

    	"k8s.io/kubernetes/pkg/kubelet/util/manager"
    	"k8s.io/utils/clock"
    )
    
    func checkObject(t *testing.T, store manager.Store, ns, name string, shouldExist bool) {
    	_, err := store.Get(ns, name)
    	if shouldExist && err != nil {
    		t.Errorf("unexpected actions: %#v", err)
    	}
    	if !shouldExist && (err == nil || !strings.Contains(err.Error(), fmt.Sprintf("object %q/%q not registered", ns, name))) {
    		t.Errorf("unexpected actions: %#v", err)
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 10:20:09 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  3. src/regexp/backtrack.go

    		b.matchcap = make([]int, ncap)
    	} else {
    		b.matchcap = b.matchcap[:ncap]
    	}
    	for i := range b.matchcap {
    		b.matchcap[i] = -1
    	}
    }
    
    // shouldVisit reports whether the combination of (pc, pos) has not
    // been visited yet.
    func (b *bitState) shouldVisit(pc uint32, pos int) bool {
    	n := uint(int(pc)*(b.end+1) + pos)
    	if b.visited[n/visitedBits]&(1<<(n&(visitedBits-1))) != 0 {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. pkg/kubelet/configmap/configmap_manager_test.go

    	"k8s.io/kubernetes/pkg/kubelet/util/manager"
    	"k8s.io/utils/clock"
    )
    
    func checkObject(t *testing.T, store manager.Store, ns, name string, shouldExist bool) {
    	_, err := store.Get(ns, name)
    	if shouldExist && err != nil {
    		t.Errorf("unexpected actions: %#v", err)
    	}
    	if !shouldExist && (err == nil || !strings.Contains(err.Error(), fmt.Sprintf("object %q/%q not registered", ns, name))) {
    		t.Errorf("unexpected actions: %#v", err)
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 10:20:09 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

                it.remove();
            }
    
            warnAboutCleanup = false;
        }
    
        public void assertFileExistence(File dir, String filename, boolean shouldExist) {
            File file = new File(dir, filename);
    
            if (shouldExist) {
                assertTrue(file.exists());
            } else {
                assertFalse(file.exists());
            }
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top