Tester is a test helper to test a Codec.
It encodes a test struct using the given codec and decodes
it into a second test struct afterwards.
It then uses the reflect pkg to check if both structs have
the exact same values.
type Codec interface {
// Encode encodes the value to a byte slice. Encode(v interface{}) ([]byte, error)
// Decode decodes the byte slice into the value. Decode(b []byte, v interface{}) error
}
Codec represents a codec used to encode and decode entities.