MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_local_golang_additional_deps

Function test_local_golang_additional_deps

tests/languages/golang_test.py:129–139  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

127
128
129def test_local_golang_additional_deps(tmp_path):
130 _make_local_repo(str(tmp_path))
131
132 ret = run_language(
133 tmp_path,
134 golang,
135 'hello',
136 deps=('golang.org/x/example/hello@latest',),
137 )
138
139 assert ret == (0, b'Hello, world!\n')
140
141
142def test_golang_hook_still_works_when_gobin_is_set(tmp_path):

Callers

nothing calls this directly

Calls 2

_make_local_repoFunction · 0.90
run_languageFunction · 0.90

Tested by

no test coverage detected