MCPcopy Index your code
hub / github.com/docker/docker-agent / SaveRunJSON

Function SaveRunJSON

pkg/evaluation/save.go:374–376  ·  view source on GitHub ↗

SaveRunJSON saves the eval run results to a JSON file. This is kept for backward compatibility and debugging purposes.

(run *EvalRun, outputDir string)

Source from the content-addressed store, hash-verified

372// SaveRunJSON saves the eval run results to a JSON file.
373// This is kept for backward compatibility and debugging purposes.
374func SaveRunJSON(run *EvalRun, outputDir string) (string, error) {
375 return saveJSON(run, filepath.Join(outputDir, run.Name+".json"))
376}
377
378// SaveRunSessionsJSON saves the full evaluation run output to a JSON file.
379// The output includes run metadata (config, summary) and all sessions with

Callers 2

TestSaveRunJSONFunction · 0.85

Calls 1

saveJSONFunction · 0.85

Tested by 2

TestSaveRunJSONFunction · 0.68