Skip to content

Commit

Permalink
[Bot] Add automatically generated go documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel authored and github-actions[bot] committed Dec 9, 2024
1 parent 376893f commit 153cbec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 73 deletions.
68 changes: 0 additions & 68 deletions all_folders.json

This file was deleted.

5 changes: 0 additions & 5 deletions filtered_folders.json

This file was deleted.

3 changes: 3 additions & 0 deletions tools/flakeguard/reports/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func SaveReportNoLogs(fs FileSystem, filePath string, report TestReport) error {
return fs.WriteFile(filePath, data, 0644)
}

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

0 comments on commit 153cbec

Please sign in to comment.