MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / detect

Function detect

src/services/testRunner/parser.ts:30–36  ·  view source on GitHub ↗
(type: 'fail' | 'pass' | 'details', text: string)

Source from the content-addressed store, hash-verified

28}
29
30const detect = (type: 'fail' | 'pass' | 'details', text: string) => {
31 const match = r[type].exec(text)
32 if (!match) {
33 return null
34 }
35 return match.groups
36}
37
38// see comment below for extracting logic into custom consumer later
39const formatMessage = (message: string): string => {

Callers 1

parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected