- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for maybeRoundLastModified (0.28 sec)
-
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/services/NativePlatformBackedFileMetadataAccessorTest.groovy
} @Override void assertSameLastModified(FileMetadata fileMetadata, File file) { assert maybeRoundLastModified(fileMetadata.lastModified) == maybeRoundLastModified(lastModifiedViaJavaNio(file)) } private static long lastModifiedViaJavaNio(File file) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterAsDirectoryWalkerTest.groovy
assert elementFromFileWalker != null assert element.directory == elementFromFileWalker.directory assert maybeRoundLastModified(element.lastModified) == maybeRoundLastModified(elementFromFileWalker.lastModified) assert element.size == elementFromFileWalker.size assert element.name == elementFromFileWalker.name
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy
def lastModified(File file) { return maybeRoundLastModified(Files.getFileAttributeView(file.toPath(), BasicFileAttributeView, LinkOption.NOFOLLOW_LINKS).readAttributes().lastModifiedTime().toMillis()) } def lastModified(FileMetadata fileMetadata) { return maybeRoundLastModified(fileMetadata.lastModified) } private static maybeRoundLastModified(long lastModified) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:06:40 UTC 2023 - 5.8K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/test/fixtures/FileMetadataTestFixture.groovy
* limitations under the License. */ package org.gradle.test.fixtures import org.gradle.api.JavaVersion import org.gradle.internal.os.OperatingSystem class FileMetadataTestFixture { static maybeRoundLastModified(long lastModified) { // Some Java 8 versions on Unix only capture the seconds in lastModified, so we cut off the milliseconds returned from the filesystem as well.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 04 02:08:21 UTC 2022 - 1.2K bytes - Viewed (0)