Welcome to mirror list, hosted at ThFree Co, Russian Federation.

proto.go « testhelper « internal - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 95a8950714cd25d8eaf81ed54a7f60edf80c46e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package testhelper

import (
	"testing"

	"github.com/golang/protobuf/proto"
	"github.com/stretchr/testify/require"
)

func ProtoEqual(t testing.TB, expected proto.Message, actual proto.Message) {
	require.True(t, proto.Equal(expected, actual), "proto messages not equal\nexpected: %v\ngot:      %v", expected, actual)
}