Skip to content

Commit 0ba2f74

Browse files
Remove unused code
1 parent ac98874 commit 0ba2f74

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

component/libfuse/libfuse2_handler_test_wrapper.go

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -260,36 +260,6 @@ func testReaddirEmptyPageToken(suite *libfuseTestSuite) {
260260
suite.assert.False(fillCalled)
261261
}
262262

263-
func testReaddirNonZeroOffsetCachesDots(suite *libfuseTestSuite) {
264-
defer suite.cleanupTest()
265-
266-
handle := handlemap.NewHandle("dir/")
267-
cacheInfo := &dirChildCache{
268-
sIndex: 0,
269-
eIndex: 0,
270-
token: "",
271-
length: 0,
272-
children: make([]*internal.ObjAttr, 0),
273-
}
274-
handle.SetValue("cache", cacheInfo)
275-
fh := handlemap.Add(handle)
276-
defer handlemap.Delete(handle.ID)
277-
278-
suite.mock.EXPECT().
279-
StreamDir(internal.StreamDirOptions{Name: "dir/", Token: ""}).
280-
Return([]*internal.ObjAttr{}, "", nil)
281-
282-
var names []string
283-
fill := func(name string, stat *fuse.Stat_t, ofst int64) bool {
284-
names = append(names, name)
285-
return true
286-
}
287-
288-
err := cfuseFS.Readdir("/dir", fill, 1, uint64(fh))
289-
suite.assert.Equal(0, err)
290-
suite.assert.Equal([]string{".", ".."}, names)
291-
}
292-
293263
func testRmDir(suite *libfuseTestSuite) {
294264
defer suite.cleanupTest()
295265
name := "path"

0 commit comments

Comments
 (0)