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