MCPcopy Index your code
hub / github.com/go-git/go-git / TestLoadNonExistent

Method TestLoadNonExistent

plumbing/transport/server/loader_test.go:55–59  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

53}
54
55func (s *LoaderSuite) TestLoadNonExistent(c *C) {
56 sto, err := DefaultLoader.Load(s.endpoint(c, "does-not-exist"))
57 c.Assert(err, Equals, transport.ErrRepositoryNotFound)
58 c.Assert(sto, IsNil)
59}
60
61func (s *LoaderSuite) TestLoadNonExistentIgnoreHost(c *C) {
62 sto, err := DefaultLoader.Load(s.endpoint(c, "https://github.com/does-not-exist"))

Callers

nothing calls this directly

Calls 2

endpointMethod · 0.95
LoadMethod · 0.65

Tested by

no test coverage detected