(mocker)
| 146 | |
| 147 | |
| 148 | def 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 | |
| 155 | def test_bad_php_parse_a(): |
nothing calls this directly
no test coverage detected