aboutsummaryrefslogtreecommitdiff
path: root/diff/trees/diff_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-21 13:38:02 +0800
committerGravatar Runxi Yu2026-02-21 14:28:15 +0800
commit94482cb2c97aa215f83940643c5d4c0933727dcb (patch)
treebee22fa113542abd1b863ee251fdcf0f9bd409b5 /diff/trees/diff_test.go
parentdiff: Add package-level doc comment (diff)
signatureNo signature
*: Modernize and lint; add CI v0.1.17
Diffstat (limited to 'diff/trees/diff_test.go')
-rw-r--r--diff/trees/diff_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/diff/trees/diff_test.go b/diff/trees/diff_test.go
index a23fbf1b..2fb8540f 100644
--- a/diff/trees/diff_test.go
+++ b/diff/trees/diff_test.go
@@ -15,7 +15,8 @@ import (
)
func TestDiffComplexNestedChanges(t *testing.T) {
- testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) {
+ t.Parallel()
+ testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) { //nolint:thelper
repo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: algo, Bare: false})
writeTestFile(t, filepath.Join(repo.Dir(), "README.md"), "initial readme\n")
@@ -98,7 +99,8 @@ func TestDiffComplexNestedChanges(t *testing.T) {
}
func TestDiffDirectoryAddDeleteDeep(t *testing.T) {
- testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) {
+ t.Parallel()
+ testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) { //nolint:thelper
repo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: algo, Bare: false})
writeTestFile(t, filepath.Join(repo.Dir(), "old_dir", "old.txt"), "stale directory\n")