aboutsummaryrefslogblamecommitdiffstats
path: root/plumbing/transport/http/receive_pack_test.go
blob: abd69b3ee48b02194282ec129509746cbbf90bd0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


            

                                                          
                             
                                           



                              
                 




                                            
                                
 
                                                 


                                                                                                             
 
package http

import (
	"gopkg.in/src-d/go-git.v4/plumbing/transport/test"

	. "gopkg.in/check.v1"
	"gopkg.in/src-d/go-git-fixtures.v3"
)

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")
}