Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for fireCount (0.31 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelNodeInternalTest.groovy

            def descriptor = Mock(ModelRuleDescriptor)
            ModelNodeInternal modelNode = new TestNode(registration)
            def executionBinder = Mock(RuleBinder)
            executionBinder.isBound() >> true
            executionBinder.getInputBindings() >> []
            executionBinder.getDescriptor() >> descriptor
    
            when:
            fireCount.times {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/DirectorySnapshotterStatistics.java

                long fileCount = this.fileCount.getAndSet(0);
                long failedFileCount = this.failedFileCount.getAndSet(0);
    
                return new DirectorySnapshotterStatistics() {
                    @Override
                    public long getVisitedHierarchyCount() {
                        return hierarchyCount;
                    }
    
                    @Override
                    public long getVisitedDirectoryCount() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/syscall/rlimit_test.go

    	// Check that we can open 1200 files, which proves
    	// that the rlimit is being raised appropriately on those systems.
    	fileCount := 1200
    
    	// OpenBSD has a default soft limit of 512 and hard limit of 1024.
    	if runtime.GOOS == "openbsd" {
    		fileCount = 768
    	}
    
    	var files []*os.File
    	for i := 0; i < fileCount; i++ {
    		f, err := os.Open("rlimit.go")
    		if err != nil {
    			t.Error(err)
    			break
    		}
    		files = append(files, f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 21:22:57 UTC 2023
    - 953 bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryWalkerTest.groovy

        private static long millisToSeconds(long millis) {
            millis / 1000L
        }
    
        private static generateFilesAndSubDirectories(TestFile parentDir, int fileCount, int dirCount, int maxDepth, int currentDepth, AtomicInteger fileIdGenerator) {
            for (int i = 0; i < fileCount; i++) {
                parentDir.createFile("file" + fileIdGenerator.incrementAndGet()) << ("x" * fileIdGenerator.get())
            }
            if (currentDepth < maxDepth) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/AbstractTaskOutputPackagingBenchmark.java

        }
    
        private static ImmutableList<DataSource> createInputFiles(int fileCount, int minFileSize, int maxFileSize, DataAccessor accessor) throws IOException {
            Random random = new Random(1234L);
            ImmutableList.Builder<DataSource> inputs = ImmutableList.builder();
            for (int idx = 0; idx < fileCount; idx++) {
                String name = "input-" + idx + ".bin";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/developingPlugins/incrementalTask/groovy/build.gradle

    tasks.register("generate", Generate) {
        fileCount = 2
        content = 'Hello World!'
        generatedFileDir = layout.buildDirectory.file("generated-output")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 158 bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/testFixtures/groovy/org/gradle/api/internal/file/collections/AbstractDirectoryWalkerTest.groovy

            where:
            walkerInstance << walkers
        }
    
        @VisibleForTesting
        static generateFilesAndSubDirectories(File parentDir, int fileCount, int dirCount, int maxDepth, int currentDepth, AtomicInteger fileIdGenerator) {
            for (int i = 0; i < fileCount; i++) {
                def file = new File(parentDir, "file" + fileIdGenerator.incrementAndGet())
                file << ("x" * fileIdGenerator.get())
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. src/go/types/gotype.go

    	conf.Check(path, fset, files, nil)
    }
    
    func printStats(d time.Duration) {
    	fileCount := 0
    	lineCount := 0
    	fset.Iterate(func(f *token.File) bool {
    		fileCount++
    		lineCount += f.LineCount()
    		return true
    	})
    
    	fmt.Printf(
    		"%s (%d files, %d lines, %d lines/s)\n",
    		d, fileCount, lineCount, int64(float64(lineCount)/d.Seconds()),
    	)
    }
    
    func main() {
    	flag.Usage = usage
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  9. pkg/wasm/cache_test.go

    				moduleDeleted := false
    				for start := time.Now(); time.Since(start) < c.checkPurgeTimeout; {
    					fileCount := 0
    					err = filepath.Walk(tmpDir,
    						func(path string, info os.FileInfo, err error) error {
    							if err != nil {
    								return err
    							}
    							if !info.IsDir() {
    								fileCount++
    							}
    							return nil
    						})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

        @TaskAction
        fun generateReport() {
            val fileCount = sourceDirectory.listFiles().count { it.isFile }
            val directoryCount = sourceDirectory.listFiles().count { it.isDirectory }
    
            val reportContent = """
                |Report for directory: ${sourceDirectory.absolutePath}
                |------------------------------
                |Number of files: $fileCount
                |Number of subdirectories: $directoryCount
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
Back to top