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

Function parseProblemState

src/commands/list.ts:48–64  ·  view source on GitHub ↗
(stateOutput: string)

Source from the content-addressed store, hash-verified

46}
47
48function parseProblemState(stateOutput: string): ProblemState {
49 if (!stateOutput) {
50 return ProblemState.Unknown;
51 }
52 switch (stateOutput.trim()) {
53 case "v":
54 case "✔":
55 case "√":
56 return ProblemState.AC;
57 case "X":
58 case "✘":
59 case "×":
60 return ProblemState.NotAC;
61 default:
62 return ProblemState.Unknown;
63 }
64}

Callers 1

listProblemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected