MCPcopy Index your code
hub / github.com/coder/coder / writeEmptyOutputs

Function writeEmptyOutputs

scripts/gotestsummary/main.go:142–152  ·  view source on GitHub ↗
(cfg config)

Source from the content-addressed store, hash-verified

140}
141
142func writeEmptyOutputs(cfg config) error {
143 if cfg.FailuresOut != "" {
144 if err := os.WriteFile(cfg.FailuresOut, nil, 0o600); err != nil {
145 return err
146 }
147 }
148 if cfg.MarkdownOut != "" && cfg.MarkdownOut != "-" {
149 return os.WriteFile(cfg.MarkdownOut, nil, 0o600)
150 }
151 return nil
152}
153
154func summarize(ctx context.Context, r io.Reader, maxOutputBytes int, stderr io.Writer) (summary, error) {
155 reader := bufio.NewReader(r)

Callers 1

runFunction · 0.85

Calls 1

WriteFileMethod · 0.65

Tested by

no test coverage detected