assertbson

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualDocument

func EqualDocument(t assert.TestingT, expected, actual []byte) bool

EqualDocument asserts that the expected and actual BSON documents are equal. If the documents are not equal, it prints both the binary diff and Extended JSON representation of the BSON documents.

func EqualValue

func EqualValue[T bson.RawValue | bsoncore.Value](t assert.TestingT, expected, actual T) bool

EqualValue asserts that the expected and actual BSON values are equal. If the values are not equal, it prints both the binary diff and Extended JSON representation of the BSON values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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