assert

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package assert provides assertions for grpc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualError added in v0.21.0

func EqualError(t assert.TestingT, expected, actual error, msgAndArgs ...any) bool

EqualError asserts that two grpc errors are equal.

func EqualErrorMessage added in v0.21.0

func EqualErrorMessage(t assert.TestingT, actual error, expected string, msgAndArgs ...any) bool

EqualErrorMessage asserts that the grpc error message is equal.

func EqualMessage

func EqualMessage(t assert.TestingT, expected, actual proto.Message, msgAndArgs ...any) bool

EqualMessage asserts that two proto messages are equal.

func JSONEq

func JSONEq(t assert.TestingT, expected, actual any, msgAndArgs ...any) bool

JSONEq compares 2 json objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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