(mocker, caplog)
| 139 | |
| 140 | |
| 141 | def test_bad_acorn(mocker, caplog): |
| 142 | caplog.set_level(logging.DEBUG) |
| 143 | mocker.patch('code2flow.javascript.get_acorn_version', return_value='7.6.9') |
| 144 | code2flow("test_code/js/simple_a_js", "/tmp/code2flow/out.json") |
| 145 | assert "Acorn" in caplog.text and "8.*" in caplog.text |
| 146 | |
| 147 | |
| 148 | def test_bad_ruby_parse(mocker): |
nothing calls this directly
no test coverage detected