(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, root vfs.VirtualDentry)
| 168 | } |
| 169 | |
| 170 | func newFakeExecutable(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, root vfs.VirtualDentry) (*vfs.FileDescription, error) { |
| 171 | const name = "executable" |
| 172 | pop := &vfs.PathOperation{ |
| 173 | Root: root, |
| 174 | Start: root, |
| 175 | Path: fspath.Parse(name), |
| 176 | } |
| 177 | opts := &vfs.OpenOptions{ |
| 178 | Flags: linux.O_RDONLY | linux.O_CREAT, |
| 179 | Mode: 0777, |
| 180 | } |
| 181 | return vfsObj.OpenAt(ctx, creds, pop, opts) |
| 182 | } |
| 183 | |
| 184 | func createMemoryFile() (*pgalloc.MemoryFile, error) { |
| 185 | const memfileName = "test-memory" |
no test coverage detected
searching dependent graphs…