3These scripts are for working with Go.
5## The individual scripts
9# This adds the root of the repo to the PATH, which has cog_helpers.py
10from os.path import abspath, dirname
13sys.path.append(abspath(dirname(dirname("."))))
21 "usage": "gobench PACKAGE -bench=$BENCHMARK_NAME",
22 "description": "compare benchmark results between a local branch and main",
25 "usage": "gocover PACKAGE",
26 "description": "run tests and report test coverage for the package"
29 "usage": "gostress PACKAGE TEST_NAME",
30 "description": "run a test with Go’s stress utility",
34cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
39 <a href="https://github.com/alexwlchan/scripts/blob/main/go/gobench">
40 <code>gobench PACKAGE -bench=$BENCHMARK_NAME</code>
44 compare benchmark results between a local branch and main
48 <a href="https://github.com/alexwlchan/scripts/blob/main/go/gocover">
49 <code>gocover PACKAGE</code>
53 run tests and report test coverage for the package
57 <a href="https://github.com/alexwlchan/scripts/blob/main/go/gostress">
58 <code>gostress PACKAGE TEST_NAME</code>
62 run a test with Go’s stress utility
65<!-- [[[end]]] (sum: eCNO30UwC4) -->