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

Method recordFinalState

src/testUtil/TestCase.ts:155–164  ·  view source on GitHub ↗
(returnValue: unknown)

Source from the content-addressed store, hash-verified

153 }
154
155 async recordFinalState(returnValue: unknown) {
156 const excludeFields = this.getExcludedFields();
157 this.returnValue = returnValue;
158 this.finalState = await takeSnapshot(
159 this.context.thatMark,
160 this.context.sourceMark,
161 excludeFields,
162 this.isHatTokenMapTest ? this.getMarks() : undefined
163 );
164 }
165
166 filterMarks(command: TestCaseCommand, context: TestCaseContext) {
167 const marksToCheck = context.targets.map(extractTargetKeys).flat();

Callers 1

postCommandHookMethod · 0.80

Calls 3

getExcludedFieldsMethod · 0.95
getMarksMethod · 0.95
takeSnapshotFunction · 0.90

Tested by

no test coverage detected