package
0.0.2
Repository: https://github.com/alexzaicev/realm-mgr.git
Documentation: pkg.go.dev

# Functions

AssertDebugLogs enables assertions against DEBUG level logs.
AssertWithoutOrder enables assertions in any order for each level of logs.
Empty asserts that a log field value is empty.
Equal asserts that a log field value is equal to the given expected value.
EqualError asserts that a log field value is an error with a message equal to the given expected value.
EqualErrorf asserts that a log field value is an error with a message equal to the given expected value with arguments substituted in.
Equalf asserts that a log field value is equal to the given expected string value with arguments substituted in.
False asserts that a log field value is false.
IsType asserts that a log field value matched the type of the given expected value.
NewField creates a new Field instance.
NewLogger creates a new Logger instance.
Nil asserts that a log field value is nil.
NotEqual asserts that a log field value is not equal to the given expected value.
Regexp asserts that a log field value is a string that matches the given regular expression.
SkipAssert disables all assertions such that any or no logs can be produced without being checked.
True asserts that a log field value is true.

# Structs

ExpectedLog describes a single log statement that is expected to be generated by tested code.
Field represents a log field with a key and number of expectations upon the log field value.
Logger is a in-memory mock implementation of the logging.Logger interface.

# Interfaces

FieldValue is used to assert that a log field value matches a given expectation.

# Type aliases

Fields contains multiple log field expectations.
Option implementations can be used to configure a new Logger instance.