@@ -590,6 +590,7 @@ func TestGitalyFile_GetTree(t *testing.T) {
590590 {Entries : []* gitalypb.TreeEntry {
591591 {Path : []byte (prefix + "a" )},
592592 {Path : []byte (prefix + "b" )},
593+ {Path : []byte (prefix + "c" )},
593594 }, PaginationCursor : & gitalypb.PaginationCursor {NextCursor : "nc" }},
594595 },
595596 }, nil )
@@ -598,12 +599,14 @@ func TestGitalyFile_GetTree(t *testing.T) {
598599 RevisionPaths : []* gitalypb.GetBlobsRequest_RevisionPath {
599600 {Revision : "main" , Path : []byte (prefix + "a" )},
600601 {Revision : "main" , Path : []byte (prefix + "b" )},
602+ {Revision : "main" , Path : []byte (prefix + "c" )},
601603 },
602604 Limit : 0 ,
603605 }).Return (& MockGrpcStreamClient [* gitalypb.GetBlobsResponse ]{
604606 data : []* gitalypb.GetBlobsResponse {
605607 {Path : []byte (prefix + "a" ), Mode : 1 , Oid : "o1" },
606608 {Path : []byte (prefix + "b" ), Mode : 1 , Oid : "o2" },
609+ {Path : []byte (prefix + "c" ), Mode : 1 , Oid : "o1" },
607610 },
608611 }, nil )
609612
@@ -643,6 +646,12 @@ size 507607173`
643646 LfsPointerSize : 1234 ,
644647 },
645648 {Name : "b" , Path : prefix + "b" , Type : "dir" , Mode : "1" , SHA : "o2" },
649+ {Name : "c" , Path : prefix + "c" , Type : "dir" , Mode : "1" ,
650+ SHA : "a4f0e7e96b4f6af4a1b597c2fc4a42ec9a997c64ab7da96760c40582a0ac27a5" ,
651+ Lfs : true , Size : 507607173 ,
652+ LfsRelativePath : "a4/f0/e7e96b4f6af4a1b597c2fc4a42ec9a997c64ab7da96760c40582a0ac27a5" ,
653+ LfsPointerSize : 1234 ,
654+ },
646655 }, tree .Files )
647656 require .Equal (t , "nc" , tree .Cursor )
648657 })
0 commit comments