checksumstest

package
v0.3.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPropertyListMatch

func AssertPropertyListMatch(t *testing.T, expected checksums.Checksums, actual []datastore.Property)

AssertPropertyListMatch asserts the properties in actual has the same values to expected.

func AssertProtoEqual

func AssertProtoEqual(t *testing.T, expected checksums.Checksums, actual checksums.ChecksumsProto)

AssertProtoEquals checks actual has the same values as expected.

func ChecksumsToProperties

func ChecksumsToProperties(t *testing.T, c checksums.Checksums) []datastore.Property

ChecksumsToProperties creates a list of datastore.Property with values in c.

func RandomChecksums

func RandomChecksums(t *testing.T) checksums.Checksums

RandomChecksums returns a randomly initialized Checksums for tests.

Types

type ChecksumsProtoImpl

type ChecksumsProtoImpl struct {
	checksums.Checksums
}

ChecksumsProtoImpl is a wrapper of Checksums for tests.

func (*ChecksumsProtoImpl) GetCrc32C

func (c *ChecksumsProtoImpl) GetCrc32C() uint32

func (*ChecksumsProtoImpl) GetHasCrc32C

func (c *ChecksumsProtoImpl) GetHasCrc32C() bool

func (*ChecksumsProtoImpl) GetMd5

func (c *ChecksumsProtoImpl) GetMd5() []byte

Jump to

Keyboard shortcuts

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