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

Function test_golang_versioned

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

Source from the content-addressed store, hash-verified

113
114
115def test_golang_versioned(tmp_path):
116 _make_local_repo(str(tmp_path))
117
118 ret, out = run_language(
119 tmp_path,
120 golang,
121 'go version',
122 version='1.21.1',
123 )
124
125 assert ret == 0
126 assert out.startswith(b'go version go1.21.1')
127
128
129def test_local_golang_additional_deps(tmp_path):

Callers

nothing calls this directly

Calls 2

_make_local_repoFunction · 0.90
run_languageFunction · 0.90

Tested by

no test coverage detected