test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package test implements p9.File acceptance tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestFile

func TestFile(t *testing.T, attach p9.Attacher)

TestFile tests attach for all expected p9.Attacher and p9.File behaviors.

TestFile expects attach to attach to an empty, writable directory.

func TestReadOnlyFS

func TestReadOnlyFS(t *testing.T, attach p9.Attacher, expectations ...Expect)

TestReadOnlyFS tests attach for all expected p9.Attacher and p9.File behaviors on read-only file systems.

Types

type Expect added in v0.3.0

type Expect func(e *expect)

func WithDir added in v0.3.0

func WithDir(path string, members ...string) Expect

func WithFile added in v0.3.0

func WithFile(path string, content string, attr p9.Attr, mask p9.AttrMask) Expect
func WithSymlink(path string, target string, attr p9.Attr, mask p9.AttrMask) Expect

Directories

Path Synopsis
Package vmdriver implements a u-root/pkg/qemu.Device for networking.
Package vmdriver implements a u-root/pkg/qemu.Device for networking.

Jump to

Keyboard shortcuts

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