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

Method TestAll

utils/diff/diff_ext_test.go:43–51  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

41}
42
43func (s *suiteCommon) TestAll(c *C) {
44 for i, t := range diffTests {
45 diffs := diff.Do(t.src, t.dst)
46 src := diff.Src(diffs)
47 dst := diff.Dst(diffs)
48 c.Assert(src, Equals, t.src, Commentf("subtest %d, src=%q, dst=%q, bad calculated src", i, t.src, t.dst))
49 c.Assert(dst, Equals, t.dst, Commentf("subtest %d, src=%q, dst=%q, bad calculated dst", i, t.src, t.dst))
50 }
51}
52
53var doTests = [...]struct {
54 src, dst string

Callers

nothing calls this directly

Calls 3

DoFunction · 0.92
SrcFunction · 0.92
DstFunction · 0.92

Tested by

no test coverage detected