MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / test_bad_ruby_parse

Function test_bad_ruby_parse

tests/test_interface.py:148–152  ·  view source on GitHub ↗
(mocker)

Source from the content-addressed store, hash-verified

146
147
148def test_bad_ruby_parse(mocker):
149 mocker.patch('subprocess.check_output', return_value=b'blah blah')
150 with pytest.raises(AssertionError) as ex:
151 code2flow("test_code/rb/simple_b", "/tmp/code2flow/out.json")
152 assert "ruby-parse" in ex and "syntax" in ex
153
154
155def test_bad_php_parse_a():

Callers

nothing calls this directly

Calls 1

code2flowFunction · 0.90

Tested by

no test coverage detected