MCPcopy Index your code
hub / github.com/gonum/plot / goldenPath

Function goldenPath

cmpimg/checkplot.go:21–25  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

19var GenerateTestData = flag.Bool("regen", false, "Uses the current state to regenerate the test data.")
20
21func goldenPath(path string) string {
22 ext := filepath.Ext(path)
23 noext := strings.TrimSuffix(path, ext)
24 return noext + "_golden" + ext
25}
26
27// CheckPlot checks a generated plot against a previously created reference.
28// If GenerateTestData = true, it regenerates the reference.

Callers 1

CheckPlotApproxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected