MCPcopy Create free account
hub / github.com/chhoumann/quickadd / getVariableValue

Method getVariableValue

src/formatters/formatter.test.ts:8–11  ·  view source on GitHub ↗
(variableName: string)

Source from the content-addressed store, hash-verified

6 private promptCalled = false;
7
8 protected getVariableValue(variableName: string): string {
9 // This is the fix we're testing
10 return (this.variables.get(variableName) as string) ?? "";
11 }
12
13 /** Returns true when a variable is present AND its value is not undefined.
14 * Null and empty string are considered intentional values. */

Callers 5

testGetVariableValueMethod · 0.95
replaceVariableInStringFunction · 0.45
replaceFieldVarInStringFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected