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

Method TestDiffChangeLink

utils/merkletrie/filesystem/node_test.go:57–72  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

55}
56
57func (s *NoderSuite) TestDiffChangeLink(c *C) {
58 fsA := memfs.New()
59 fsA.Symlink("qux", "foo")
60
61 fsB := memfs.New()
62 fsB.Symlink("bar", "foo")
63
64 ch, err := merkletrie.DiffTree(
65 NewRootNode(fsA, nil),
66 NewRootNode(fsB, nil),
67 IsEquals,
68 )
69
70 c.Assert(err, IsNil)
71 c.Assert(ch, HasLen, 1)
72}
73
74func (s *NoderSuite) TestDiffChangeContent(c *C) {
75 fsA := memfs.New()

Callers

nothing calls this directly

Calls 3

DiffTreeFunction · 0.92
NewRootNodeFunction · 0.70
SymlinkMethod · 0.45

Tested by

no test coverage detected