| 1 | package transportscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/ |
| 2 | |
| 3 | import ( |
| 4 | "ioscip-go gomod github.com/golang/go/src go1.25.0 io/" |
| 5 | "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/" |
| 6 | |
| 7 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/" |
| 8 | "github.com/stretchr/testify/requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/" |
| 9 | |
| 10 | "github.com/go-git/go-git/v6/plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/" |
| 11 | "github.com/go-git/go-git/v6/plumbing/protocol/capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/" |
| 12 | "github.com/go-git/go-git/v6/plumbing/protocol/packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/" |
| 13 | ) |
| 14 | |
| 15 | func TestBuildUpdateRequestsWithReportStatusscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithReportStatus().(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#) { |
| 16 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 17 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 18 | caps.Addscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Add().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.ReportStatusscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/ReportStatus.) |
| 19 | |
| 20 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 21 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 22 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 23 | }, |
| 24 | } |
| 25 | |
| 26 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 27 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.ReportStatusscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/ReportStatus.)) |
| 28 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Lenscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Len().(t, upreq.Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Commands., 1) |
| 29 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ReferenceNamescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ReferenceName#("refs/heads/master"), upreq.Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Commands.[0].Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.) |
| 30 | } |
| 31 | |
| 32 | func TestBuildUpdateRequestsWithoutReportStatusscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithoutReportStatus().(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#) { |
| 33 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 34 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 35 | |
| 36 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 37 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 38 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 39 | }, |
| 40 | } |
| 41 | |
| 42 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 43 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.ReportStatusscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/ReportStatus.)) |
| 44 | } |
| 45 | |
| 46 | func TestBuildUpdateRequestsWithProgressscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithProgress().(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#) { |
| 47 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 48 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 49 | caps.Addscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Add().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Sideband64kscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Sideband64k.) |
| 50 | |
| 51 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 52 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 53 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 54 | }, |
| 55 | Progressscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Progress.: &mockWriterscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter#{}, |
| 56 | } |
| 57 | |
| 58 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 59 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Sideband64kscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Sideband64k.)) |
| 60 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Sidebandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Sideband.)) |
| 61 | } |
| 62 | |
| 63 | func TestBuildUpdateRequestsWithProgressFallbackscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithProgressFallback().(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#) { |
| 64 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 65 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 66 | caps.Addscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Add().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Sidebandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Sideband.) |
| 67 | |
| 68 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 69 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 70 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 71 | }, |
| 72 | Progressscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Progress.: &mockWriterscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter#{}, |
| 73 | } |
| 74 | |
| 75 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 76 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Sideband64kscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Sideband64k.)) |
| 77 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Sidebandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Sideband.)) |
| 78 | } |
| 79 | |
| 80 | func TestBuildUpdateRequestsWithQuietscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithQuiet().(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#) { |
| 81 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 82 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 83 | caps.Addscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Add().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Quietscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Quiet.) |
| 84 | |
| 85 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 86 | Progressscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Progress.: ioscip-go gomod github.com/golang/go/src go1.25.0 io/.Discardscip-go gomod github.com/golang/go/src go1.25.0 io/Discard., |
| 87 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 88 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 89 | }, |
| 90 | Quietscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Quiet.: true, |
| 91 | } |
| 92 | |
| 93 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 94 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Quietscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Quiet.)) |
| 95 | } |
| 96 | |
| 97 | func TestBuildUpdateRequestsWithAtomicscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithAtomic().(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#) { |
| 98 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 99 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 100 | caps.Addscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Add().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Atomicscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Atomic.) |
| 101 | |
| 102 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 103 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 104 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 105 | }, |
| 106 | Atomicscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Atomic.: true, |
| 107 | } |
| 108 | |
| 109 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 110 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Atomicscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Atomic.)) |
| 111 | } |
| 112 | |
| 113 | func TestBuildUpdateRequestsWithAtomicNotSupportedscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithAtomicNotSupported().(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#) { |
| 114 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 115 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 116 | |
| 117 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 118 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 119 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 120 | }, |
| 121 | Atomicscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Atomic.: true, |
| 122 | } |
| 123 | |
| 124 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 125 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Falsescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/False().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Atomicscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Atomic.)) |
| 126 | } |
| 127 | |
| 128 | func TestBuildUpdateRequestsWithAgentscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/TestBuildUpdateRequestsWithAgent().(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#) { |
| 129 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 130 | caps := capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Listscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#{} |
| 131 | caps.Setscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Set().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Agentscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Agent., capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.DefaultAgentscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/DefaultAgent().()) |
| 132 | |
| 133 | req := &PushRequestscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#{ |
| 134 | Commandsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/PushRequest#Commands.: []*packpscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/.Commandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#{ |
| 135 | {Namescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Name.: "refs/heads/master", Oldscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#Old.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.ZeroHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/ZeroHash., Newscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/Command#New.: plumbingscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/.NewHashscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing`/NewHash().("0123456789012345678901234567890123456789")}, |
| 136 | }, |
| 137 | } |
| 138 | |
| 139 | upreq := buildUpdateRequestsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/buildUpdateRequests().(caps, req) |
| 140 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, upreq.Capabilitiesscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp`/UpdateRequests#Capabilities..Supportsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/List#Supports().(capabilityscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/.Agentscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/capability`/Agent.)) |
| 141 | } |
| 142 | |
| 143 | type mockWriterscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter# struct { |
| 144 | datascip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter#data. []byte |
| 145 | } |
| 146 | |
| 147 | func (w *mockWriterscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter#) Writescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter#Write().(p []byte) (int, error) { |
| 148 | w.datascip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter#data. = append(w.datascip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/transport`/mockWriter#data., p...) |
| 149 | return len(p), nil |
| 150 | } |