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

Method TestLogError

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

Source from the content-addressed store, hash-verified

1954}
1955
1956func (s *RepositorySuite) TestLogError(c *C) {
1957 r, _ := Init(memory.NewStorage(), nil)
1958 err := r.clone(context.Background(), &CloneOptions{
1959 URL: s.GetBasicLocalRepositoryURL(),
1960 })
1961
1962 c.Assert(err, IsNil)
1963
1964 _, err = r.Log(&LogOptions{
1965 From: plumbing.NewHash("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
1966 })
1967 c.Assert(err, NotNil)
1968}
1969
1970func (s *RepositorySuite) TestLogFileNext(c *C) {
1971 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