MCPcopy Index your code
hub / github.com/LeetCode-OpenSource/vscode-leetcode / parseTestString

Function parseTestString

src/commands/test.ts:90–102  ·  view source on GitHub ↗
(test: string)

Source from the content-addressed store, hash-verified

88}
89
90function parseTestString(test: string): string {
91 if (wsl.useWsl() || !isWindows()) {
92 return `'${test}'`;
93 }
94
95 // In windows and not using WSL
96 if (usingCmd()) {
97 return `"${test.replace(/"/g, '\\"')}"`;
98 } else {
99 // Assume using PowerShell
100 return `'${test.replace(/"/g, '\\"')}'`;
101 }
102}

Callers 1

testSolutionFunction · 0.85

Calls 2

isWindowsFunction · 0.90
usingCmdFunction · 0.90

Tested by

no test coverage detected