Skip to content

Commit e2f5a60

Browse files
Tofelgithub-actions[bot]
authored andcommitted
[Bot] Add automatically generated go documentation
1 parent 1715556 commit e2f5a60

File tree

3 files changed

+3
-73
lines changed

3 files changed

+3
-73
lines changed

all_folders.json

Lines changed: 0 additions & 68 deletions
This file was deleted.

filtered_folders.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/flakeguard/reports/io.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ func SaveReportNoLogs(fs FileSystem, filePath string, report TestReport) error {
101101
return fs.WriteFile(filePath, data, 0644)
102102
}
103103

104+
// SaveReport saves a TestReport to a specified file path in JSON format.
105+
// It ensures the file is created or truncated and handles any errors during
106+
// file operations, providing a reliable way to persist test results.
104107
func SaveReport(fs FileSystem, filePath string, report TestReport) error {
105108
// Open the file with truncation mode
106109
file, err := os.OpenFile(filePath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)

0 commit comments

Comments
 (0)