24
runID string,
25
logger log.Logger,
27
>
28
>
ms := NewMutableState(shard, eventsCache, logger, ns, workflowID, runID, time.Now().UTC())
29
>
ms.executionInfo.NamespaceId = string(ns.ID())
30
>
ms.executionInfo.WorkflowId = workflowID
31
>
ms.executionState.RunId = runID
32
>
ms.GetExecutionInfo().ExecutionTime = ms.GetExecutionState().StartTime
33
>
_ = ms.SetHistoryTree(nil, nil, runID)
34
>
35
>
return ms
36
>
}
37
38
// NewMapEventCache is a functional event cache mock that wraps a simple Go map