aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/osutil_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/osutil: add DiskUsage functionDmitry Vyukov2026-01-091-0/+42
| | | | DiskUsage returns total recursive disk usage of the dir (similar to du -s).
* pkg/osutil: add Read/ParseJSON functionsDmitry Vyukov2025-11-171-0/+21
|
* syz-fuzzer: use of monotonic time for latency measurementDmitry Vyukov2024-04-021-0/+10
| | | | | time.Now/Since may reject to use monotonic time if the fuzzer messes with system time badly enough. Enforce use of monotonic time.
* all: use `t.TempDir` to create temporary test directoryEng Zer Jun2022-03-281-6/+1
| | | | | | | | | This commit replaces all `ioutil.TempDir` with `t.TempDir` in tests. The directory created by `t.TempDir` is automatically removed when the test and all its subtests complete. Reference: https://pkg.go.dev/testing#T.TempDir Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* pkg/osutil: fix LinkFiles/FilesExist for the new pattern formatDmitry Vyukov2020-09-151-35/+46
|
* pkg/osutil: support glob patterns in CopyFilesDmitry Vyukov2020-09-141-0/+97
| | | | Follow up to #2053
* pkg/osutil: add IsExist helper functionDmitry Vyukov2017-06-171-0/+18