aboutsummaryrefslogtreecommitdiff
path: root/reachability/unit_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /reachability/unit_test.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'reachability/unit_test.go')
-rw-r--r--reachability/unit_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/reachability/unit_test.go b/reachability/unit_test.go
index 8f19cfcd..2fef2b48 100644
--- a/reachability/unit_test.go
+++ b/reachability/unit_test.go
@@ -233,9 +233,9 @@ func TestWalkDomainCommitsRejectsNonCommitRootAfterPeel(t *testing.T) {
t.Fatal("expected error")
}
- var typeErr *reachability.ErrObjectType
+ var typeErr *reachability.ObjectTypeError
if !errors.As(err, &typeErr) {
- t.Fatalf("expected ErrObjectType, got %T (%v)", err, err)
+ t.Fatalf("expected ObjectTypeError, got %T (%v)", err, err)
}
if typeErr.Got != objecttype.TypeTree || typeErr.Want != objecttype.TypeCommit {
@@ -349,9 +349,9 @@ func TestCheckConnectedReturnsConcreteMissingObject(t *testing.T) {
t.Fatal("expected error")
}
- var missing *reachability.ErrObjectMissing
+ var missing *reachability.ObjectMissingError
if !errors.As(err, &missing) {
- t.Fatalf("expected ErrObjectMissing, got %T (%v)", err, err)
+ t.Fatalf("expected ObjectMissingError, got %T (%v)", err, err)
}
if missing.OID != missingParent {
@@ -441,9 +441,9 @@ func TestIsAncestorRejectsNonCommitAfterPeel(t *testing.T) {
t.Fatal("expected error")
}
- var typeErr *reachability.ErrObjectType
+ var typeErr *reachability.ObjectTypeError
if !errors.As(err, &typeErr) {
- t.Fatalf("expected ErrObjectType, got %T (%v)", err, err)
+ t.Fatalf("expected ObjectTypeError, got %T (%v)", err, err)
}
})
}