MCPcopy Create free account
hub / github.com/github/gh-aw / experimentInfoFromState

Function experimentInfoFromState

pkg/cli/experiments_command.go:664–672  ·  view source on GitHub ↗

experimentInfoFromState builds an ExperimentInfo summary from a state.json.

(workflowID, branchName string, state *ExperimentState)

Source from the content-addressed store, hash-verified

662
663// experimentInfoFromState builds an ExperimentInfo summary from a state.json.
664func experimentInfoFromState(workflowID, branchName string, state *ExperimentState) ExperimentInfo {
665 return ExperimentInfo{
666 WorkflowID: workflowID,
667 Branch: branchName,
668 Experiments: len(state.Counts),
669 TotalRuns: experimentTotalRuns(state),
670 LastRun: experimentLastRun(state),
671 }
672}
673
674// experimentDetailsFromState builds ExperimentDetails from a state.json.
675func experimentDetailsFromState(workflowID, branchName string, state *ExperimentState) *ExperimentDetails {

Callers 2

fetchLocalExperimentsFunction · 0.85
fetchRemoteExperimentsFunction · 0.85

Calls 2

experimentTotalRunsFunction · 0.85
experimentLastRunFunction · 0.85

Tested by

no test coverage detected