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