Debian Codegraph @

plumbing/protocol/packp/sideband/muxer_test.go

raw symbols SCIP
1 package sidebandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/
2
3 import (
4 "bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/"
5 )
6
7 func (s *SidebandSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/SidebandSuite#) TestMuxerWritescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/SidebandSuite#TestMuxerWrite().() {
8 buf := bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.NewBufferscip-go gomod github.com/golang/go/src go1.25.0 bytes/NewBuffer().(nil)
9
10 m := NewMuxerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/NewMuxer().(Sidebandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/Sideband., buf)
11
12 n, err := m.Writescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/Muxer#Write().(bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Repeatscip-go gomod github.com/golang/go/src go1.25.0 bytes/Repeat().([]byte{'F'}, (MaxPackedSizescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/MaxPackedSize.-1)*2))
13 s.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#NoError().(err)
14 s.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#Equal().(1998, n)
15 s.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#Equal().(2008, buf.Lenscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#Len().())
16 }
17
18 func (s *SidebandSuitescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/SidebandSuite#) TestMuxerWriteChannelMultipleChannelsscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/SidebandSuite#TestMuxerWriteChannelMultipleChannels().() {
19 buf := bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.NewBufferscip-go gomod github.com/golang/go/src go1.25.0 bytes/NewBuffer().(nil)
20
21 m := NewMuxerscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/NewMuxer().(Sidebandscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/Sideband., buf)
22
23 n, err := m.WriteChannelscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/Muxer#WriteChannel().(PackDatascip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/PackData., bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Repeatscip-go gomod github.com/golang/go/src go1.25.0 bytes/Repeat().([]byte{'D'}, 4))
24 s.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#NoError().(err)
25 s.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#Equal().(4, n)
26
27 n, err = m.WriteChannelscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/Muxer#WriteChannel().(ProgressMessagescip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/ProgressMessage., bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Repeatscip-go gomod github.com/golang/go/src go1.25.0 bytes/Repeat().([]byte{'P'}, 4))
28 s.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#NoError().(err)
29 s.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#Equal().(4, n)
30
31 n, err = m.WriteChannelscip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/Muxer#WriteChannel().(PackDatascip-go gomod github.com/go-git/go-git/v6 . `github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband`/PackData., bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Repeatscip-go gomod github.com/golang/go/src go1.25.0 bytes/Repeat().([]byte{'D'}, 4))
32 s.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#NoError().(err)
33 s.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#Equal().(4, n)
34
35 s.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#Equal().(27, buf.Lenscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#Len().())
36 s.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Assertions#Equal().("0009\x01DDDD0009\x02PPPP0009\x01DDDD", buf.Stringscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#String().())
37 }