- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for maybeRoundLastModified (0.29 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)