Debian Codegraph @

plumbing/transport/file/pack_test.go

raw symbols SCIP
1 package filescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/
2
3 import (
4 "net/urlscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/"
5 "path/filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/"
6 "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/"
7
8 fixturesscip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/ "github.com/go-git/go-git-fixtures/v6scip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/"
9 "github.com/stretchr/testify/suitescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/suite`/"
10
11 "github.com/go-git/go-git/v6/internal/transport/testscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/"
12 "github.com/go-git/go-git/v6/plumbing/transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/"
13 "github.com/go-git/go-git/v6/storagescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage`/"
14 "github.com/go-git/go-git/v6/storage/filesystemscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/filesystem`/"
15 "github.com/go-git/go-git/v6/storage/memoryscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/memory`/"
16 )
17
18 type filePackEnvscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv# struct {
19 Endpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Endpoint., EmptyEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyEndpoint., NonExistentEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentEndpoint. *urlscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/.URLscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#
20 Storerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Storer., EmptyStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyStorer., NonExistentStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentStorer. storagescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage`/.Storerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage`/Storer#
21 Transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Transport. transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/.Transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/Transport#
22 }
23
24 func setupFilePackEnvscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/setupFilePackEnv().(t testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.TBscip-go gomod github.com/golang/go/src go1.25.0 testing/TB#) filePackEnvscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv# {
25 t.Helperscip-go gomod github.com/golang/go/src go1.25.0 testing/TB#Helper().()
26 base := t.TempDirscip-go gomod github.com/golang/go/src go1.25.0 testing/TB#TempDir().()
27
28 basicFS := testscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/.PrepareRepositoryscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/PrepareRepository().(t, fixturesscip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/.Basicscip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/Basic().().Onescip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/Fixtures#One().(), base, "basic.git")
29 emptyFS := testscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/.PrepareRepositoryscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/PrepareRepository().(t, fixturesscip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/.ByTagscip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/ByTag().("empty").Onescip-go gomod github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 `github.com/go-git/go-git-fixtures/v6`/Fixtures#One().(), base, "empty.git")
30
31 basicPath, err := filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/.Absscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/Abs().(basicFS.Rootscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6`/Chroot#Root().())
32 if err != nil {
33 t.Fatalscip-go gomod github.com/golang/go/src go1.25.0 testing/TB#Fatal().(err)
34 }
35 emptyPath, err := filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/.Absscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/Abs().(emptyFS.Rootscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6`/Chroot#Root().())
36 if err != nil {
37 t.Fatalscip-go gomod github.com/golang/go/src go1.25.0 testing/TB#Fatal().(err)
38 }
39
40 return filePackEnvscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#{
41 Endpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Endpoint.: &urlscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/.URLscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#{Schemescip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#Scheme.: "file", Pathscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#Path.: basicPath},
42 EmptyEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyEndpoint.: &urlscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/.URLscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#{Schemescip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#Scheme.: "file", Pathscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#Path.: emptyPath},
43 NonExistentEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentEndpoint.: &urlscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/.URLscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#{Schemescip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#Scheme.: "file", Pathscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#Path.: "/nonexistent/repo.git"},
44 Storerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Storer.: filesystemscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/filesystem`/.NewStoragescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/filesystem`/NewStorage().(basicFS, nil),
45 EmptyStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyStorer.: filesystemscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/filesystem`/.NewStoragescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/filesystem`/NewStorage().(emptyFS, nil),
46 NonExistentStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentStorer.: memoryscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/memory`/.NewStoragescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/storage/memory`/NewStorage().(),
47 Transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Transport.: NewTransportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/NewTransport().(Optionsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/Options#{}),
48 }
49 }
50
51 func TestUploadPackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/TestUploadPackSuite().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
52 t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().()
53 suitescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/suite`/.Runscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/suite`/Run().(t, new(uploadPackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/uploadPackSuite#))
54 }
55
56 type uploadPackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/uploadPackSuite# struct {
57 testscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/.UploadPackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/uploadPackSuite#UploadPackSuite.
58 }
59
60 func (s *uploadPackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/uploadPackSuite#) SetupTestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/uploadPackSuite#SetupTest().() {
61 env := setupFilePackEnvscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/setupFilePackEnv().(s.Tscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/suite`/Suite#T().())
62 s.Endpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/UploadPackSuite#Endpoint. = env.Endpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Endpoint.
63 s.EmptyEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/UploadPackSuite#EmptyEndpoint. = env.EmptyEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyEndpoint.
64 s.NonExistentEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/UploadPackSuite#NonExistentEndpoint. = env.NonExistentEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentEndpoint.
65 s.Storerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/UploadPackSuite#Storer. = env.Storerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Storer.
66 s.EmptyStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/UploadPackSuite#EmptyStorer. = env.EmptyStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyStorer.
67 s.NonExistentStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/UploadPackSuite#NonExistentStorer. = env.NonExistentStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentStorer.
68 s.Transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/UploadPackSuite#Transport. = env.Transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Transport.
69 }
70
71 func TestReceivePackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/TestReceivePackSuite().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
72 t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().()
73 suitescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/suite`/.Runscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/suite`/Run().(t, new(receivePackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/receivePackSuite#))
74 }
75
76 type receivePackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/receivePackSuite# struct {
77 testscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/.ReceivePackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/receivePackSuite#ReceivePackSuite.
78 }
79
80 func (s *receivePackSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/receivePackSuite#) SetupTestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/receivePackSuite#SetupTest().() {
81 env := setupFilePackEnvscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/setupFilePackEnv().(s.Tscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/suite`/Suite#T().())
82 s.Endpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/ReceivePackSuite#Endpoint. = env.Endpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Endpoint.
83 s.EmptyEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/ReceivePackSuite#EmptyEndpoint. = env.EmptyEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyEndpoint.
84 s.NonExistentEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/ReceivePackSuite#NonExistentEndpoint. = env.NonExistentEndpointscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentEndpoint.
85 s.Storerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/ReceivePackSuite#Storer. = env.Storerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Storer.
86 s.EmptyStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/ReceivePackSuite#EmptyStorer. = env.EmptyStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#EmptyStorer.
87 s.NonExistentStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/ReceivePackSuite#NonExistentStorer. = env.NonExistentStorerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#NonExistentStorer.
88 s.Transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/internal/transport/test`/ReceivePackSuite#Transport. = env.Transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport/file`/filePackEnv#Transport.
89 }