MCPcopy Create free account
hub / github.com/go-git/go-git / TestValidateMissingName

Method TestValidateMissingName

config/modules_test.go:37–40  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

35}
36
37func (s *ModulesSuite) TestValidateMissingName(c *C) {
38 m := &Submodule{URL: "bar"}
39 c.Assert(m.Validate(), Equals, ErrModuleEmptyPath)
40}
41
42func (s *ModulesSuite) TestMarshal(c *C) {
43 input := []byte(`[submodule "qux"]

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected