Debian Codegraph @

plumbing/transport/git/receive_pack_test.go

raw
1 package git
2
3 import (
4 "github.com/go-git/go-git/v5/plumbing/transport/test"
5
6 fixtures "github.com/go-git/go-git-fixtures/v4"
7 . "gopkg.in/check.v1"
8 )
9
10 type ReceivePackSuite struct {
11 test.ReceivePackSuite
12 BaseSuite
13 }
14
15 var _ = Suite(&ReceivePackSuite{})
16
17 func (s *ReceivePackSuite) SetUpTest(c *C) {
18 s.BaseSuite.SetUpTest(c)
19
20 s.ReceivePackSuite.Client = DefaultClient
21 s.ReceivePackSuite.Endpoint = s.prepareRepository(c, fixtures.Basic().One(), "basic.git")
22 s.ReceivePackSuite.EmptyEndpoint = s.prepareRepository(c, fixtures.ByTag("empty").One(), "empty.git")
23 s.ReceivePackSuite.NonExistentEndpoint = s.newEndpoint(c, "non-existent.git")
24
25 s.StartDaemon(c)
26 }
27
28 func (s *ReceivePackSuite) TestAdvertisedReferencesEmpty(c *C) {
29 //This test from BaseSuite is flaky, so it's disabled until we figure out a solution.
30 }