blocktest

package
v0.0.0-...-2208570 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package testlib a test library for testing implementations of the block.Device interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorPaths

func ErrorPaths(t *testing.T, dev block.Device)

ErrorPaths tests that block.Device implementations return errors when clients attempt to perform any operations with invalid arguments.

func ReadAt

func ReadAt(t *testing.T, dev block.Device, r *rand.Rand, buf []byte)

ReadAt tests the block.Device.ReadAt implementation. buf must be a []byte with the same contents as dev.

func WriteAt

func WriteAt(t *testing.T, dev block.Device, r *rand.Rand, buf []byte)

WriteAt tests the block.Device.WriteAt implementation. buf must be a []byte with the same contents as dev.

Types

This section is empty.

Jump to

Keyboard shortcuts

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