Add a note about the style of git tests

This commit is contained in:
Mislav Marohnić 2021-02-26 13:07:38 +01:00
parent d97e8fe172
commit 492f45422e

View file

@ -42,6 +42,12 @@ func TestCommitBody(t *testing.T) {
}
}
/*
NOTE: below this are stubbed git tests, i.e. those that do not actually invoke `git`. If possible, utilize
`setGitDir()` to allow new tests to interact with `git`. For write operations, you can use `t.TempDir()` to
host a temporary git repository that is safe to be changed.
*/
func Test_UncommittedChangeCount(t *testing.T) {
type c struct {
Label string