MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / recordInitialState

Method recordInitialState

src/testUtil/TestCase.ts:145–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 }
144
145 async recordInitialState() {
146 const excludeFields = this.getExcludedFields({ initialSnapshot: true });
147 this.initialState = await takeSnapshot(
148 this.context.thatMark,
149 this.context.sourceMark,
150 excludeFields,
151 this.getMarks()
152 );
153 }
154
155 async recordFinalState(returnValue: unknown) {
156 const excludeFields = this.getExcludedFields();

Callers 1

preCommandHookMethod · 0.80

Calls 3

getExcludedFieldsMethod · 0.95
getMarksMethod · 0.95
takeSnapshotFunction · 0.90

Tested by

no test coverage detected