aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/fileutil_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/manager: remove a dependency on grepAleksandr Nogikh2025-08-051-0/+17
| | | | | | Instead of calling grep (the implementations of which may differ in different environments), traverse the directory and grep files with a special pkg/osutil helper functionality.
* all: use special placeholder for errorsTaras Madan2023-07-241-1/+1
|
* all: use `t.TempDir` to create temporary test directoryEng Zer Jun2022-03-281-7/+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>
* all: fix gometalinter warningsDmitry Vyukov2018-03-081-7/+10
| | | | Fix typos, non-canonical code, remove dead code, etc.
* all: use consistent file permissionsDmitry Vyukov2017-07-031-0/+65
Currently we have unix permissions for new files/dirs hardcoded throughout the code base. Some places use 0644, some - 0640, some - 0600 and a variety of other constants. Introduce osutil.MkdirAll/WriteFile that use the default permissions and use them throughout the code base. This makes permissions consistent and also allows to easily change the permissions later if we change our minds. Also merge pkg/fileutil into pkg/osutil as they become dependent on each other. The line between them was poorly defined anyway as both operate on files.