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

Function formatMessage

src/services/testRunner/parser.ts:39–46  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

37
38// see comment below for extracting logic into custom consumer later
39const formatMessage = (message: string): string => {
40 // specific for python tap.py output
41 const isTappy = message.match(/^test_(?<underscoredMessage>.+)\s(?<testPath>.+)$/)
42 if (isTappy?.groups?.underscoredMessage) {
43 return isTappy.groups.underscoredMessage.split('_').join(' ').trim()
44 }
45 return message.trim()
46}
47
48// TODO: consider creating custom TAP consumers for languages
49// otherwise code here will eventually get out of hand

Callers 1

parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected