(c *C)
| 93 | } |
| 94 | |
| 95 | func (s *NoderSuite) TestDiffSymlinkDirOnA(c *C) { |
| 96 | fsA := memfs.New() |
| 97 | WriteFile(fsA, "qux/qux", []byte("foo"), 0644) |
| 98 | |
| 99 | fsB := memfs.New() |
| 100 | fsB.Symlink("qux", "foo") |
| 101 | WriteFile(fsB, "qux/qux", []byte("foo"), 0644) |
| 102 | |
| 103 | ch, err := merkletrie.DiffTree( |
| 104 | NewRootNode(fsA, nil), |
| 105 | NewRootNode(fsB, nil), |
| 106 | IsEquals, |
| 107 | ) |
| 108 | |
| 109 | c.Assert(err, IsNil) |
| 110 | c.Assert(ch, HasLen, 1) |
| 111 | } |
| 112 | |
| 113 | func (s *NoderSuite) TestDiffSymlinkDirOnB(c *C) { |
| 114 | fsA := memfs.New() |
nothing calls this directly
no test coverage detected