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

Function test_golang_default_version

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

Source from the content-addressed store, hash-verified

101
102
103def test_golang_default_version(tmp_path):
104 _make_hello_world(tmp_path)
105
106 ret = run_language(
107 tmp_path,
108 golang,
109 'golang-hello-world',
110 version=C.DEFAULT,
111 )
112 assert ret == (0, b'hello world\n')
113
114
115def test_golang_versioned(tmp_path):

Callers

nothing calls this directly

Calls 2

run_languageFunction · 0.90
_make_hello_worldFunction · 0.70

Tested by

no test coverage detected