checkers

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BSONEquals = &codecEqualChecker{
	name:      "BSONEquals",
	marshal:   bson.Marshal,
	unmarshal: bson.Unmarshal,
}

BSONEquals defines a checker that checks whether a byte slice, when unmarshaled as BSON, is equal to the given value. Rather than unmarshaling into something of the expected body type, we reform the expected body in BSON and back to interface{} so we can check the whole content. Otherwise we lose information when unmarshaling.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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