test

package
v0.0.0-...-23e6066 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package test provides a simple ramfs-based filesystem for use in testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	ramfs.Dir
}

Dir is a simple ramfs.Dir that supports save/restore as-is.

func NewDir

func NewDir(ctx context.Context, contents map[string]*fs.Inode, perms fs.FilePermissions) *Dir

NewDir returns a simple ramfs directory with the passed contents.

type File

type File struct {
	ramfs.File
}

File is a simple ramfs.File that supports save/restore as-is.

func NewFile

func NewFile(ctx context.Context, perms fs.FilePermissions) *File

NewFile returns a simple ramfs File.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL