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

Function test_bad_acorn

tests/test_interface.py:141–145  ·  view source on GitHub ↗
(mocker, caplog)

Source from the content-addressed store, hash-verified

139
140
141def 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
148def test_bad_ruby_parse(mocker):

Callers

nothing calls this directly

Calls 1

code2flowFunction · 0.90

Tested by

no test coverage detected