tests

package
v0.0.0-...-678448a Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tests borrows Assert() from https://github.com/heketi/heketi

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, b bool)

Assert provides a simple assert call for unit and functional tests

func MockGetxattr

func MockGetxattr(path string, attr string, dest []byte) (sz int, err error)

MockGetxattr is mock function for unix.Getxattr

func MockRemovexattr

func MockRemovexattr(path string, attr string) (err error)

MockRemovexattr is mock function for unix.Removexattr

func MockSetxattr

func MockSetxattr(path string, attr string, data []byte, flags int) (err error)

MockSetxattr is mock function for unix.Setxattr

func MockValidateBrickPathStats

func MockValidateBrickPathStats(brickPath string, host string, force bool) error

MockValidateBrickPathStats is mock function for utils.ValidateBrickPathStats

Types

This section is empty.

Jump to

Keyboard shortcuts

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