Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertElementsMatch2 ¶ added in v0.8.0
func AssertElementsMatch2[K, V any](t *testing.T, expected []KeyValuePair[K, V], seq iter.Seq2[K, V])
AssertElementsMatch2 asserts that the expected key-value pairs match the actual key-value pairs from a sequence in any order.
func AssertEqual ¶
AssertEqual asserts that the expected values are equal to the actual values from a sequence.
func AssertEqual2 ¶
AssertEqual2 asserts that the expected key-value pairs are equal to the actual key-value pairs from a sequence.
Types ¶
type KeyValuePair ¶
type KeyValuePair[K, V any] struct { Key K Value V }
KeyValuePair represents a value and its key.
Click to show internal directories.
Click to hide internal directories.