Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for RegularFileSnapshot (0.28 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/DirectorySnapshotTest.groovy

                    new RegularFileSnapshot(childFile.absolutePath, childFile.name, TestHashCodes.hashCodeFrom(9876), DefaultFileMetadata.file(123, 456, FileMetadata.AccessType.DIRECT))
                ]),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/DefaultOverlappingOutputDetectorTest.groovy

    import org.gradle.internal.snapshot.DirectorySnapshot
    import org.gradle.internal.snapshot.FileSystemSnapshot
    import org.gradle.internal.snapshot.MissingFileSnapshot
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import spock.lang.Specification
    
    class DefaultOverlappingOutputDetectorTest extends Specification {
        def detector = new DefaultOverlappingOutputDetector()
    
        def "detects no overlap when there are none"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/IgnoringResourceHasherTest.groovy

    import org.gradle.internal.hash.TestHashCodes
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import spock.lang.Specification
    
    class IgnoringResourceHasherTest extends Specification {
        def delegate = Mock(ResourceHasher)
        def resourceFilter = Mock(ResourceFilter)
        def hasher = new IgnoringResourceHasher(delegate, resourceFilter)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/changedetection/state/DefaultResourceSnapshotterCacheServiceTest.groovy

    import org.gradle.internal.snapshot.RegularFileSnapshot
    import org.gradle.testfixtures.internal.TestInMemoryIndexedCache
    import spock.lang.Specification
    
    
    class DefaultResourceSnapshotterCacheServiceTest extends Specification {
        def delegate = Mock(ResourceHasher)
        def path = "some"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 10 13:47:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/AbiExtractingClasspathResourceHasherTest.groovy

    import org.gradle.internal.hash.HashCode
    import org.gradle.internal.hash.Hashing
    import org.gradle.internal.normalization.java.ApiClassExtractor
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import org.junit.Rule
    import org.junit.rules.TemporaryFolder
    import spock.lang.Issue
    import spock.lang.Specification
    
    class AbiExtractingClasspathResourceHasherTest extends Specification {
        @Rule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/NonIncrementalInputChangesTest.groovy

    import org.gradle.internal.hash.TestHashCodes
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import spock.lang.Specification
    
    class NonIncrementalInputChangesTest extends Specification {
    
        def "can iterate changes more than once"() {
            def fingerprint = DefaultCurrentFileCollectionFingerprint.from(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/FileSystemSnapshotSerializerTest.groovy

    import org.gradle.internal.snapshot.DirectorySnapshot
    import org.gradle.internal.snapshot.FileSystemSnapshot
    import org.gradle.internal.snapshot.MissingFileSnapshot
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import org.gradle.internal.snapshot.TestSnapshotFixture
    
    import static org.gradle.internal.file.FileMetadata.AccessType.DIRECT
    import static org.gradle.internal.file.FileMetadata.AccessType.VIA_SYMLINK
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SnapshotUtil.java

                builder.put(snapshot.getAbsolutePath(), snapshot.getHash());
                return SnapshotVisitResult.SKIP_SUBTREE;
            });
            return builder.build();
        }
    
        /**
         * For a {@link RegularFileSnapshot} returns the file length, otherwise {@code 0}.
         */
        public static long getLength(FileSystemLocationSnapshot snapshot) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingFileSystemLocationSnapshotHasherTest.groovy

            RuntimeException | RuntimeException
        }
    
        File file(String path) {
            return new File(tempDir, path)
        }
    
        RegularFileSnapshot snapshot(File file, FileType fileType = FileType.RegularFile) {
            return Mock(RegularFileSnapshot) {
                getAbsolutePath() >> file.absolutePath
                getType() >> fileType
                getHash() >> Hashing.hashFile(file)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/ZipHasher.java

    import org.gradle.internal.hash.HashCode;
    import org.gradle.internal.hash.Hasher;
    import org.gradle.internal.hash.Hashing;
    import org.gradle.internal.snapshot.RegularFileSnapshot;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import javax.annotation.Nullable;
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top