Debian Codegraph @

plumbing/transport/http/receive_pack_test.go

raw
1 package http
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 }