aboutsummaryrefslogtreecommitdiff
path: root/object/tree_parse_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-03 21:09:33 +0800
committerGravatar Runxi Yu2026-03-03 21:17:15 +0800
commitee16d84dcf13e5490dd9504791510851b53a866b (patch)
treecba438757481fba3d9b9395ba6837e76653c0f4c /object/tree_parse_test.go
parentreachability: Add basic reachability API (diff)
signatureNo signature
object, repository: Ignore erroneous new staticcheck
Diffstat (limited to 'object/tree_parse_test.go')
-rw-r--r--object/tree_parse_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/object/tree_parse_test.go b/object/tree_parse_test.go
index 5af9c677..989d6ff1 100644
--- a/object/tree_parse_test.go
+++ b/object/tree_parse_test.go
@@ -53,9 +53,11 @@ func TestTreeParseFromGit(t *testing.T) {
for _, want := range inserted.Entries {
got := tree.Entry(want.Name)
+ //nolint:staticcheck
if got == nil {
t.Fatalf("Entry(%q) returned nil", want.Name)
}
+ //nolint:staticcheck
if got.Mode != want.Mode || got.ID != want.ID {
t.Fatalf("Entry(%q) mismatch", want.Name)
}