Skip to content

sirkon/deepequal

Repository files navigation

Deepequal

Package with protobuf-friendly deepequal functionality.

As you probably know, reflect.DeepEqual should not work for structures generated with protoc-gen-go because of their hidden service fields. This modified version of reflect.DeepEqual takes care of this and call proto.Equal for values of these types.

Also, there's a deepequal.SideBySide function that can be used in tests to show a difference between expected and actual values side by side.

sidebyside

Installation

go get github.com/sirkon/deepequal

About

Pure Go alternative to go-cmp for painless testing. Smart Protobuf comparison combined with human-readable side-by-side diff. No loop eyes.

Topics

Resources

License

Stars

6 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors