MCPcopy Create free account
hub / github.com/garrytan/gstack / readShipBaseline

Function readShipBaseline

test/helpers/transcript-section-logger.ts:168–174  ·  view source on GitHub ↗
(situation: string, dir = DEFAULT_BASELINE_DIR)

Source from the content-addressed store, hash-verified

166
167/** Read a previously-captured baseline, or null if none exists yet. */
168export function readShipBaseline(situation: string, dir = DEFAULT_BASELINE_DIR): ShipBaseline | null {
169 try {
170 return JSON.parse(fs.readFileSync(baselinePath(situation, dir), 'utf-8')) as ShipBaseline;
171 } catch {
172 return null;
173 }
174}
175
176export interface ShipActionDiff {
177 /** Actions the baseline performed that the current run did NOT (the regression set). */

Calls 1

baselinePathFunction · 0.85

Tested by

no test coverage detected