package
2.6.0
Repository: https://github.com/shashankft9/sdk-go.git
Documentation: pkg.go.dev

# Functions

AllOf combines matchers together.
AllVersions returns all versions of each event in events.
AnyOf returns a matcher which match if at least one of the provided matchers matches.
AssertEvent is a "matcher like" assertion method to test the properties of an event.
AssertEventContextEquals asserts that two event.Event contexts are equals.
AssertEventEquals asserts that two event.Event are equals.
ContainsAttributes checks if the event contains at least the provided context attributes.
ContainsExactlyExtensions checks if the event contains only the provided extension names and no more.
ContainsExtensions checks if the event contains at least the provided extension names.
ConvertEventExtensionsToString returns a copy of the event.Event where all extensions are converted to strings.
DataContains matches that the data field of the event, converted to a string, contains the provided string.
EachEvent runs f as a test for each event in events.
EachMessage runs f as a test for each message in messages.
Events is a set of test events that should be handled correctly by all event-processing code.
FullEvent has all context attributes set and JSON string data.
FullMessage returns the same event of FullEvent but wrapped as Message.
No description provided by the author
HasData checks if the event contains the provided data.
No description provided by the author
No description provided by the author
HasExactlyAttributesEqualTo checks if the event has exactly the provided spec attributes (excluding extension attributes).
HasExactlyExtensions checks if the event contains exactly the provided extensions.
HasExtension checks if the event contains the provided extension.
HasExtensions checks if the event contains at least the provided extensions.
No description provided by the author
HasNoData checks if the event doesn't contain data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsContextEqualTo performs a semantic equality check of the event context, including extension attributes (like AssertEventContextEquals).
IsDataEqualTo checks if the data field matches with want.
IsEqualTo performs a semantic equality check of the event (like AssertEventEquals).
IsInvalid checks if the event is invalid.
IsValid checks if the event is valid.
MinEvent has only required attributes set.
MinMessage returns the same event of MinEvent but wrapped as Message.
MustJSON marshals the event.Event to JSON structured representation or panics.
MustToEvent converts a Message to event.Event.
TestNameOf generates a string test name from x, esp.
WithoutExtensions returns a copy of events with no Extensions.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author