(fs fs.Filesystem, path string, contents []byte)
| 597 | } |
| 598 | |
| 599 | func equalContents(fs fs.Filesystem, path string, contents []byte) error { |
| 600 | fd, err := fs.Open(path) |
| 601 | if err != nil { |
| 602 | return err |
| 603 | } |
| 604 | defer fd.Close() |
| 605 | bs, err := io.ReadAll(fd) |
| 606 | if err != nil { |
| 607 | return err |
| 608 | } |
| 609 | if !bytes.Equal(bs, contents) { |
| 610 | return errors.New("incorrect data") |
| 611 | } |
| 612 | return nil |
| 613 | } |
| 614 | |
| 615 | func TestRequestRemoteRenameChanged(t *testing.T) { |
| 616 | t.Skip("flaky") |
no test coverage detected