MCPcopy
hub / github.com/pre-commit/pre-commit / test_r_hook

Function test_r_hook

tests/languages/r_test.py:217–225  ·  view source on GitHub ↗
(
        tmp_path,
        renv_lock_file,
        description_file,
        hello_world_file,
        renv_folder,
)

Source from the content-addressed store, hash-verified

215
216
217def test_r_hook(
218 tmp_path,
219 renv_lock_file,
220 description_file,
221 hello_world_file,
222 renv_folder,
223):
224 expected = (0, b'Hello, World, from R!\n')
225 assert run_language(tmp_path, r, 'Rscript hello-world.R') == expected
226
227
228def test_r_inline(tmp_path):

Callers

nothing calls this directly

Calls 1

run_languageFunction · 0.90

Tested by

no test coverage detected