(t *testing.T)
| 715 | } |
| 716 | |
| 717 | func TestCreateDirInFileMap(t *testing.T) { |
| 718 | sync := Sync{ |
| 719 | fileIndex: newFileIndex(), |
| 720 | } |
| 721 | |
| 722 | sync.fileIndex.CreateDirInFileMap("/TestDir1/TestDir2/TestDir3/TestDir4") |
| 723 | |
| 724 | if len(sync.fileIndex.fileMap) != 4 { |
| 725 | t.Fatal("Create dir in file map failed!") |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | func TestRemoveDirInFileMap(t *testing.T) { |
| 730 | sync := Sync{ |
nothing calls this directly
no test coverage detected