1package lightstep_tracer_common_test
2
3import (
4	"reflect"
5	"testing"
6
7	"github.com/lightstep/lightstep-tracer-common/golang/protobuf/collectorpb"
8	"github.com/lightstep/lightstep-tracer-common/golang/protobuf/collectorpb/collectorpbfakes"
9	"github.com/lightstep/lightstep-tracer-common/golang/protobuf/lightsteppb"
10)
11
12func TestProtoIsProtobuf(t *testing.T) {
13	var r collectorpb.ReportRequest
14	if ptag := reflect.ValueOf(r).Type().Field(0).Tag.Get("protobuf"); ptag == "" {
15		panic("Not a protobuf!")
16	}
17
18	var c lightsteppb.BinaryCarrier
19	if ptag := reflect.ValueOf(c).Type().Field(0).Tag.Get("protobuf"); ptag == "" {
20		panic("Not a protobuf!")
21	}
22
23	_ = collectorpbfakes.FakeCollectorServiceClient{}
24}
25