(ctx context.Context, vfsObj *vfs.VirtualFilesystem)
| 45 | func (fd *testFD) Release(context.Context) {} |
| 46 | |
| 47 | func newTestFD(ctx context.Context, vfsObj *vfs.VirtualFilesystem) *vfs.FileDescription { |
| 48 | vd := vfsObj.NewAnonVirtualDentry("testFD") |
| 49 | defer vd.DecRef(ctx) |
| 50 | var fd testFD |
| 51 | fd.vfsfd.Init(&fd, 0 /* flags */, auth.CredentialsFromContext(ctx), vd.Mount(), vd.Dentry(), &vfs.FileDescriptionOptions{}) |
| 52 | return &fd.vfsfd |
| 53 | } |
| 54 | |
| 55 | func runTest(t testing.TB, fn func(ctx context.Context, fdTable *FDTable, fd *vfs.FileDescription, limitSet *limits.LimitSet)) { |
| 56 | t.Helper() // Don't show in stacks. |
no test coverage detected
searching dependent graphs…