MCPcopy Create free account
hub / github.com/edoardottt/pphack / writeOutput

Function writeOutput

pkg/scan/runner.go:142–146  ·  view source on GitHub ↗
(r *Runner, resultData output.ResultData)

Source from the content-addressed store, hash-verified

140}
141
142func writeOutput(r *Runner, resultData output.ResultData) {
143 if !r.Result.Printed(resultData.TargetURL) {
144 write(r.OutMutex, &r.Options, resultData)
145 }
146}
147
148func write(m *sync.Mutex, options *input.Options, resultData output.ResultData) {
149 if options.FileOutput != "" && options.Output == nil {

Callers 1

RunMethod · 0.85

Calls 2

writeFunction · 0.85
PrintedMethod · 0.80

Tested by

no test coverage detected