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

Method TestLogError

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

Source from the content-addressed store, hash-verified

1986}
1987
1988func (s *RepositorySuite) TestLogError(c *C) {
1989 r, _ := Init(memory.NewStorage(), nil)
1990 err := r.clone(context.Background(), &CloneOptions{
1991 URL: s.GetBasicLocalRepositoryURL(),
1992 })
1993
1994 c.Assert(err, IsNil)
1995
1996 _, err = r.Log(&LogOptions{
1997 From: plumbing.NewHash("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
1998 })
1999 c.Assert(err, NotNil)
2000}
2001
2002func (s *RepositorySuite) TestLogFileNext(c *C) {
2003 r, _ := Init(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 6

NewStorageFunction · 0.92
NewHashFunction · 0.92
InitFunction · 0.85
cloneMethod · 0.80
LogMethod · 0.80

Tested by

no test coverage detected