enginetest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package enginetest provides utilities for testing generic engine implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeTestCase

type VolumeTestCase struct {
	sync.Mutex
	Engine             string
	Mountpoint         string
	WriteVolumePayload string
	CheckVolumePayload string
	// contains filtered or unexported fields
}

A VolumeTestCase holds information necessary to run tests that an engine can create volumes, mount and read/write to volumes.

func (*VolumeTestCase) Test

func (c *VolumeTestCase) Test(t *testing.T)

Test runs all tests on the test case.

func (*VolumeTestCase) TestReadEmptyVolume

func (c *VolumeTestCase) TestReadEmptyVolume(t *testing.T)

TestReadEmptyVolume tests that read from empty volume doesn't work

func (*VolumeTestCase) TestReadToReadOnlyVolume

func (c *VolumeTestCase) TestReadToReadOnlyVolume(t *testing.T)

TestReadToReadOnlyVolume tests that we can read from a read-only volume

func (*VolumeTestCase) TestWriteReadVolume

func (c *VolumeTestCase) TestWriteReadVolume(t *testing.T)

TestWriteReadVolume tests that we can write and read from a volume

func (*VolumeTestCase) TestWriteToReadOnlyVolume

func (c *VolumeTestCase) TestWriteToReadOnlyVolume(t *testing.T)

TestWriteToReadOnlyVolume tests that write doesn't work to a read-only volume

Jump to

Keyboard shortcuts

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