package
0.24.0
Repository: https://github.com/lushdigital/core.git
Documentation: pkg.go.dev

# README

Test

The core/test package contains helpers for aiding testing.

Examples

Equals

t.Run("foo equals foo", func(t *testing.T) {
    test.Equals(t, "foo", "foo")
})

Not equals

t.Run("foo does not equal foo", func(t *testing.T) {
    test.NotEquals(t, "foo", "bar")
})

# Functions

BindJSON takes a json stream and binds it to a struct.
DialGRPC will connect to a grpc server on a specific port.
Equals performs a deep equal comparison against two values and fails if they are not the same.
NotEquals performs a deep equal comparison against two values and fails if they are the same.
ToJSONBody turns a struct into a json body.