MCPcopy
hub / github.com/go-git/go-git / TestEmptyCreateBranch

Method TestEmptyCreateBranch

repository_test.go:402–407  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

400}
401
402func (s *RepositorySuite) TestEmptyCreateBranch(c *C) {
403 r, _ := Init(memory.NewStorage(), nil)
404 err := r.CreateBranch(&config.Branch{})
405
406 c.Assert(err, NotNil)
407}
408
409func (s *RepositorySuite) TestInvalidCreateBranch(c *C) {
410 r, _ := Init(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
CreateBranchMethod · 0.80

Tested by

no test coverage detected