MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / __getVsConfigs

Function __getVsConfigs

test/cli/helloworld_test.py:21–32  ·  view source on GitHub ↗
(stdout, filename)

Source from the content-addressed store, hash-verified

19# Get Visual Studio configurations checking a file
20# Checking {file} {config}...
21def __getVsConfigs(stdout, filename):
22 ret = []
23 for line in stdout.split('\n'):
24 if not line.startswith('Checking %s ' % filename):
25 continue
26 if not line.endswith('...'):
27 continue
28 res = re.match(r'.* ([A-Za-z0-9|]+)...', line)
29 if res:
30 ret.append(res.group(1))
31 ret.sort()
32 return ' '.join(ret)
33
34def test_relative_path():
35 args = [

Calls 2

matchMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected