(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestGetStorageVirtualFilesByPath(t *testing.T) { |
| 48 | setupStorages(t) |
| 49 | virtualFiles := op.GetStorageVirtualFilesByPath("/a") |
| 50 | var names []string |
| 51 | for _, virtualFile := range virtualFiles { |
| 52 | names = append(names, virtualFile.GetName()) |
| 53 | } |
| 54 | var expectedNames = []string{"b", "c", "d"} |
| 55 | if utils.SliceEqual(names, expectedNames) { |
| 56 | t.Logf("passed") |
| 57 | } else { |
| 58 | t.Errorf("expected: %+v, got: %+v", expectedNames, names) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func TestGetBalancedStorage(t *testing.T) { |
| 63 | set := mapset.NewSet[string]() |
nothing calls this directly
no test coverage detected