(c *C)
| 111 | } |
| 112 | |
| 113 | func (s *NoderSuite) TestDiffSymlinkDirOnB(c *C) { |
| 114 | fsA := memfs.New() |
| 115 | fsA.Symlink("qux", "foo") |
| 116 | WriteFile(fsA, "qux/qux", []byte("foo"), 0644) |
| 117 | |
| 118 | fsB := memfs.New() |
| 119 | WriteFile(fsB, "qux/qux", []byte("foo"), 0644) |
| 120 | |
| 121 | ch, err := merkletrie.DiffTree( |
| 122 | NewRootNode(fsA, nil), |
| 123 | NewRootNode(fsB, nil), |
| 124 | IsEquals, |
| 125 | ) |
| 126 | |
| 127 | c.Assert(err, IsNil) |
| 128 | c.Assert(ch, HasLen, 1) |
| 129 | } |
| 130 | |
| 131 | func (s *NoderSuite) TestDiffChangeMissing(c *C) { |
| 132 | fsA := memfs.New() |
nothing calls this directly
no test coverage detected