MCPcopy Create free account
hub / github.com/JordanCoin/codemap / MetricsPath

Function MetricsPath

handoff/storage.go:46–52  ·  view source on GitHub ↗

MetricsPath returns the absolute location of the handoff metrics log.

(root string)

Source from the content-addressed store, hash-verified

44
45// MetricsPath returns the absolute location of the handoff metrics log.
46func MetricsPath(root string) string {
47 absRoot, err := filepath.Abs(root)
48 if err != nil {
49 return filepath.Join(root, ".codemap", metricsFilename)
50 }
51 return filepath.Join(absRoot, ".codemap", metricsFilename)
52}
53
54// ReadLatest reads the latest handoff artifact if it exists.
55// Returns (nil, nil) when no artifact is present.

Callers 5

runHandoffSubcommandFunction · 0.92
appendMetricsFunction · 0.85
capMetricsLogFunction · 0.85
TestBuildWriteReadFunction · 0.85
TestMetricsLogCappedFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestBuildWriteReadFunction · 0.68
TestMetricsLogCappedFunction · 0.68