- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for toZeroPaddedString (0.3 sec)
-
platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy
expect: HashCode.fromString("12345678").toZeroPaddedString(8) == "12345678" HashCode.fromString("12345678").toZeroPaddedString(7) == "12345678" HashCode.fromString("12345678").toZeroPaddedString(0) == "12345678" HashCode.fromString("12345678").toZeroPaddedString(9) == "012345678" HashCode.fromString("12345678").toZeroPaddedString(16) == "0000000012345678"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 8.2K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy
} private TestFile hashFile(TestFile file, HashFunction hashFunction) { def hashFile = getHashFile(file, hashFunction) def hash = hashFunction.hashFile(file) hashFile.text = hash.toZeroPaddedString(hashFunction.hexDigits) return hashFile } private TestFile getHashFile(TestFile file, HashFunction hashFunction) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/CachedDependencyResolutionIntegrationTest.groovy
server.sendLastModified = false byte[] jarBytes = [0, 0, 0, 5] // this should produce leading zeros module.jarFile.bytes = jarBytes sha1.text = Hashing.sha1().hashBytes(jarBytes).toZeroPaddedString(Hashing.sha1().hexDigits) initialResolve() expect: headThenSha1Requests() trimLeadingZerosFromSHA1(sha1) unchangedResolve() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 5.7K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperChecksumVerificationTest.groovy
} static String getDistributionHash(GradleDistribution distribution) { sha256().hashFile(distribution.binDistribution).toZeroPaddedString(sha256().hexDigits) } def "wrapper preserves new checksum if it was provided in properties"() { given: configureServer(false)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 6K bytes - Viewed (0)