v0.1.8 tests converted to standard library from testify

This commit is contained in:
lixen committed 2026-07-24 13:48:21 -04:00
1 parent 0e29d8db6a
commit 2eaa80a39d
19 files changed
+2399 -1795

No files matched your search

+4 -2
View File
@@ -152,7 +152,8 @@ func (l *Logger) getDiskFreeSpace(path string) (int64, error) {
if err := syscall.Statfs(path, &stat); err != nil {
return 0, fmtErrorf("failed to get disk stats for '%s': %w", path, err)
}
availableBytes := int64(stat.Bavail) * stat.Bsize
// Explicit cast to int64 to satisfy both Linux and FreebSD
availableBytes := int64(stat.Bavail) * int64(stat.Bsize)
return availableBytes, nil
}
@@ -490,4 +491,5 @@ func (l *Logger) getLogFileCount(dir, ext string) (int, error) {
}
}
return count, nil
}
}