metadbtest

package
v0.2.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqualBlobRef

func AssertEqualBlobRef(t *testing.T, expected, actual *blobref.BlobRef, msgAndArgs ...interface{})

AssertEqualBlobRef is equivalent to AssertEqualBlobRefWithinDuration(t, expected, actual, time.Duration(0), msgAndArgs...)

func AssertEqualBlobRefWithinDuration

func AssertEqualBlobRefWithinDuration(t *testing.T, expected, actual *blobref.BlobRef, delta time.Duration, msgAndArgs ...interface{})

AssertEqualBlobRefWithinDuration compares each field in blobref.BlobRef and asserts the timestamps are within delta.

func AssertEqualChunkRef

func AssertEqualChunkRef(t *testing.T, expected, actual *chunkref.ChunkRef, msgAndArgs ...interface{})

AssertEqualChunkRef is equivalent to AssertEqualChunkRefWithinDuration(t, expected, actual, time.Duration(0), msgAndArgs...)

func AssertEqualChunkRefWithinDuration

func AssertEqualChunkRefWithinDuration(t *testing.T, expected, actual *chunkref.ChunkRef, delta time.Duration, msgAndArgs ...interface{})

AssertEqualChunkRefWithinDuration compares each field in chunkref.ChunkRef and asserts they are equal (timestamps are within delta).

func AssertEqualRecord

func AssertEqualRecord(t *testing.T, expected, actual *record.Record, msgAndArgs ...interface{})

AssertEqualRecord is equivalent to AssertEqualRecordWithinDuration(t, expected, actual, time.Duration(0), msgAndArgs...)

func AssertEqualRecordWithinDuration

func AssertEqualRecordWithinDuration(t *testing.T, expected, actual *record.Record, delta time.Duration, msgAndArgs ...interface{})

AssertEqualRecordWithinDuration compares each field in record.Record and asserts the timestamps are within delta.

func AssertEqualStore

func AssertEqualStore(t *testing.T, expected, actual *store.Store, msgAndArgs ...interface{})

AssertEqualStore is equivalent to AssertEqualStoreWithinDuration(t, expected, actual, time.Duration(0), msgAndArgs...)

func AssertEqualStoreWithinDuration

func AssertEqualStoreWithinDuration(t *testing.T, expected, actual *store.Store, delta time.Duration, msgAndArgs ...interface{})

AssertEqualStoreWithinDuration compares each field in store.Store and asserts the timestamps are within delta.

Types

This section is empty.

Jump to

Keyboard shortcuts

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