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

Method TestInvalidCreateBranch

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

Source from the content-addressed store, hash-verified

407}
408
409func (s *RepositorySuite) TestInvalidCreateBranch(c *C) {
410 r, _ := Init(memory.NewStorage(), nil)
411 err := r.CreateBranch(&config.Branch{
412 Name: "-foo",
413 })
414
415 c.Assert(err, NotNil)
416}
417
418func (s *RepositorySuite) TestCreateBranchAndBranch(c *C) {
419 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