Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for visitZip (0.11 sec)

  1. testing/performance/src/templates/archivePerformanceProject/build.gradle

    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    def visitIterations = (1..10)
    
    tasks.register("visitZip") {
        doLast {
            visitIterations.each {
                zipTree(file("archive.zip")).each {
                    logger.info it.path
                }
            }
        }
    }
    
    tasks.register("visitTar") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:42:52 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/ArchiveTreePerformanceTest.groovy

        }
    
        @RunFor(
            @Scenario(type = PER_COMMIT, operatingSystems = [LINUX], testProjects = ["archivePerformanceProject"])
        )
        def "visiting zip trees"() {
            given:
            runner.tasksToRun = ['visitZip']
            runner.addBuildMutator { createArchive(it, "archive.zip") { contents, output -> contents.zipTo(output) } }
    
            when:
            def result = runner.run()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:42:52 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/SingleIncludePatternFileTreeSpec.groovy

            when:
            fileTree.visit(visitor)
    
            then:
            1 * visitor.visitDir({ it.file == tempDir.file("dir1") })
            1 * visitor.visitDir({ it.file == tempDir.file("dir2") })
            1 * visitor.visitDir({ it.file == tempDir.file("dir3") })
            1 * visitor.visitDir({ it.file == tempDir.file("dir2/dir1") })
            1 * visitor.visitDir({ it.file == tempDir.file("dir2/dir2") })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  4. callbacks/helper.go

    			}
    		}
    		if !withCondition {
    			db.AddError(gorm.ErrMissingWhereClause)
    		}
    		return
    	}
    }
    
    type visitMap = map[reflect.Value]bool
    
    // Check if circular values, return true if loaded
    func loadOrStoreVisitMap(visitMap *visitMap, v reflect.Value) (loaded bool) {
    	if v.Kind() == reflect.Ptr {
    		v = v.Elem()
    	}
    
    	switch v.Kind() {
    	case reflect.Slice, reflect.Array:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Apr 14 12:32:57 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/FilteredMinimalFileTreeTest.groovy

            1 * spec.isSatisfiedBy(excluded) >> false
            1 * source.visit(_) >> { FileVisitor nestedVisitor ->
                nestedVisitor.visitDir(included)
                nestedVisitor.visitDir(excluded)
            }
            1 * visitor.visitDir(included)
            0 * _
        }
    
        def "ignores file that is not included"() {
            def spec = Mock(Spec)
            def included = Stub(FileVisitDetails)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. subprojects/core/src/testFixtures/groovy/org/gradle/api/file/FileVisitorUtil.groovy

                    visitFile: {FileVisitDetails details ->
                        assertFalse(found)
                        found = true
                        details.stopVisiting()
                    },
                    visitDir: {FileVisitDetails details ->
                        assertFalse(found)
                    }
            ] as FileVisitor
    
            tree.visit(visitor)
            assertTrue(found)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 14:26:33 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryWalkerTest.groovy

            def fileTree = new DirectoryFileTree(rootDir, new PatternSet(), TestFiles.fileSystem(), false)
            def visited = []
            def visitClosure = { visited << it }
            def fileVisitor = [visitFile: visitClosure, visitDir: visitClosure, isReproducibleFileOrder: { isReproducible }] as ReproducibleFileVisitor
            fileTree.visit(fileVisitor)
            visited
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/internal/classpath/ClasspathWalker.java

                visitDirectoryContents(root, visitor);
            }
        }
    
        private void visitDirectoryContents(File dir, ClasspathEntryVisitor visitor) throws IOException {
            visitDir(dir, "", visitor);
        }
    
        private void visitDir(File dir, String prefix, ClasspathEntryVisitor visitor) throws IOException {
            File[] files = dir.listFiles();
    
            // Apply a consistent order, regardless of file system ordering
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/FilteredMinimalFileTree.java

            Spec<FileTreeElement> spec = patterns.getAsSpec();
            tree.visit(new FileVisitor() {
                @Override
                public void visitDir(FileVisitDetails dirDetails) {
                    if (spec.isSatisfiedBy(dirDetails)) {
                        visitor.visitDir(dirDetails);
                    }
                }
    
                @Override
                public void visitFile(FileVisitDetails fileDetails) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

        if (ShouldPreserveIsland(island)) {
          reachable_ops.insert(&op);
          VisitOp(graph, &op, &reachable_ops, &ops_to_visit);
        }
      }
    
      // Visit transitive ops until no there are no reachable ops left that have not
      // been visited.
      while (!ops_to_visit.empty()) {
        Operation* op = ops_to_visit.pop_back_val();
        VisitOp(graph, op, &reachable_ops, &ops_to_visit);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
Back to top