diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2020-11-18 16:21:38 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-11-18 16:21:38 +0300 |
commit | becfc73a38c079345e58d3f5c31a3d28aa34ce2e (patch) | |
tree | 1e0dd7f530cf43df88a7b468634344906164b595 /STYLE.md | |
parent | f4648a1a4f0409532de2cc8d8348d5c326fe3d3b (diff) | |
parent | 11231dccdc47b84c807078bb5bb9e4a5d744f02f (diff) |
Merge branch 'pks-style-tests-main' into 'master'
style: Document location of `TestMain()` function
See merge request gitlab-org/gitaly!2799
Diffstat (limited to 'STYLE.md')
-rw-r--r-- | STYLE.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -273,6 +273,11 @@ practices](https://prometheus.io/docs/practices/naming/) and be aware of the [gotchas](https://prometheus.io/docs/practices/instrumentation/#things-to-watch-out-for). +### Main function + +If tests require a `TestMain()` function for common setup, this function should +be implemented in a file called `testhelper_test.go` + ## Git Commands Gitaly relies heavily on spawning git subprocesses to perform work. Any git |