Add a note about the style of git tests
This commit is contained in:
parent
d97e8fe172
commit
492f45422e
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue