MCPcopy Index your code
hub / github.com/nodejs/node / check_mtime

Function check_mtime

test/parallel/test-fs-utimes.js:48–53  ·  view source on GitHub ↗
(resource, mtime, statSync)

Source from the content-addressed store, hash-verified

46}
47
48function check_mtime(resource, mtime, statSync) {
49 mtime = fs._toUnixTimestamp(mtime);
50 const stats = stat_resource(resource, statSync);
51 const real_mtime = fs._toUnixTimestamp(stats.mtime);
52 return mtime - real_mtime;
53}
54
55function expect_errno(syscall, resource, err, errno) {
56 assert(

Callers 1

expect_okFunction · 0.85

Calls 1

stat_resourceFunction · 0.85

Tested by

no test coverage detected