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

Method testSolution

src/leetCodeExecutor.ts:176–181  ·  view source on GitHub ↗
(filePath: string, testString?: string)

Source from the content-addressed store, hash-verified

174 }
175
176 public async testSolution(filePath: string, testString?: string): Promise<string> {
177 if (testString) {
178 return await this.executeCommandWithProgressEx("Submitting to LeetCode...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "test", `"${filePath}"`, "-t", `${testString}`]);
179 }
180 return await this.executeCommandWithProgressEx("Submitting to LeetCode...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "test", `"${filePath}"`]);
181 }
182
183 public async switchEndpoint(endpoint: string): Promise<string> {
184 switch (endpoint) {

Callers 2

activateFunction · 0.80
testSolutionFunction · 0.80

Calls 2

getLeetCodeBinaryPathMethod · 0.95

Tested by

no test coverage detected