test

package
v0.0.0-...-93f22b1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFakeBinary

func CreateFakeBinary(length int) []byte

CreateFakeBinary create a binary file with the specified number of bytes

func CreateGCloudImpl

func CreateGCloudImpl() (string, storage.Storage)

CreateGCloudImpl returns the bucket name used for the test, and the gcloud storage implementation

func DoSha

func DoSha(data []byte) string

DoSha get the sha512 sum of the bytes provided

func GenerateBinaryFromInt

func GenerateBinaryFromInt(index uint32) []byte

GenerateBinaryFromInt generate a binary where the payload is the int value to guarantee unique sha

func IsEmpty

func IsEmpty(obj string)

IsEmpty assert a string is empty

func IsNil

func IsNil(obj interface{})

IsNil assert an instance is nil

func RemoveGCloudTestBucket

func RemoveGCloudTestBucket(bucketName string, storageImpl storage.Storage)

RemoveGCloudTestBucket remove all items in the bucket and it's corresponding bucket when complete

Types

This section is empty.

Jump to

Keyboard shortcuts

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