protorequire

package
v1.25.0-114.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotProtoEqual

func NotProtoEqual(t require.TestingT, a proto.Message, b proto.Message)

func ProtoEqual

func ProtoEqual(t require.TestingT, a proto.Message, b proto.Message)

func ProtoSliceEqual

func ProtoSliceEqual[T proto.Message](t require.TestingT, a []T, b []T)

ProtoSliceEqual compares elements in a slice of proto.Message. This is not a method on the suite type because methods cannot have generic parameters and slice casting (say from []historyEvent) to []proto.Message is impossible

Types

type ProtoAssertions

type ProtoAssertions struct {
	// contains filtered or unexported fields
}

func (ProtoAssertions) DeepEqual

func (x ProtoAssertions) DeepEqual(a any, b any)

func (ProtoAssertions) NotProtoEqual

func (x ProtoAssertions) NotProtoEqual(a proto.Message, b proto.Message)

func (ProtoAssertions) ProtoElementsMatch

func (x ProtoAssertions) ProtoElementsMatch(a any, b any) bool

func (ProtoAssertions) ProtoEqual

func (x ProtoAssertions) ProtoEqual(a proto.Message, b proto.Message)

Jump to

Keyboard shortcuts

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