asserts

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBulkReply

func AssertBulkReply(t *testing.T, actual redis.Reply, expected string)

AssertBulkReply checks if the given redis.Reply is the expected string

func AssertErrReply

func AssertErrReply(t *testing.T, actual redis.Reply, expected string)

AssertErrReply checks if the given redis.Reply is the expected error

func AssertIntReply

func AssertIntReply(t *testing.T, actual redis.Reply, expected int)

AssertIntReply checks if the given redis.Reply is the expected integer

func AssertIntReplyGreaterThan

func AssertIntReplyGreaterThan(t *testing.T, actual redis.Reply, expected int)

func AssertMultiBulkReply

func AssertMultiBulkReply(t *testing.T, actual redis.Reply, expected []string)

AssertMultiBulkReply checks if the given redis.Reply has the expected content

func AssertMultiBulkReplySize

func AssertMultiBulkReplySize(t *testing.T, actual redis.Reply, expected int)

AssertMultiBulkReplySize check if redis.Reply has expected length

func AssertNotError

func AssertNotError(t *testing.T, result redis.Reply)

AssertNotError checks if the given redis.Reply is not error protocol

func AssertNullBulk

func AssertNullBulk(t *testing.T, result redis.Reply)

AssertNullBulk checks if the given redis.Reply is protocol.NullBulkReply

func AssertStatusReply

func AssertStatusReply(t *testing.T, actual redis.Reply, expected string)

AssertStatusReply checks if the given redis.Reply is the expected status

Types

This section is empty.

Jump to

Keyboard shortcuts

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