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

Method TestValidateInvalidRemoteKey

config/config_test.go:275–283  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

273}
274
275func (s *ConfigSuite) TestValidateInvalidRemoteKey(c *C) {
276 config := &Config{
277 Remotes: map[string]*RemoteConfig{
278 "bar": {Name: "foo"},
279 },
280 }
281
282 c.Assert(config.Validate(), Equals, ErrInvalid)
283}
284
285func (s *ConfigSuite) TestRemoteConfigValidateMissingURL(c *C) {
286 config := &RemoteConfig{Name: "foo"}

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected