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

Method TestAddGlobErrorNoMatches

worktree_test.go:2183–2189  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

2181}
2182
2183func (s *WorktreeSuite) TestAddGlobErrorNoMatches(c *C) {
2184 r, _ := Init(memory.NewStorage(), memfs.New())
2185 w, _ := r.Worktree()
2186
2187 err := w.AddGlob("foo")
2188 c.Assert(err, Equals, ErrGlobNoMatches)
2189}
2190
2191func (s *WorktreeSuite) TestAddSkipStatusAddedPath(c *C) {
2192 fs := memfs.New()

Callers

nothing calls this directly

Calls 4

NewStorageFunction · 0.92
InitFunction · 0.85
WorktreeMethod · 0.80
AddGlobMethod · 0.80

Tested by

no test coverage detected