github.com/kaituanwang/hyperledger@v2.0.1+incompatible/common/grpcmetrics/grpcmetrics_suite_test.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package grpcmetrics_test
     8  
     9  import (
    10  	"testing"
    11  
    12  	"github.com/hyperledger/fabric/common/grpcmetrics/testpb"
    13  	. "github.com/onsi/ginkgo"
    14  	. "github.com/onsi/gomega"
    15  )
    16  
    17  //go:generate protoc --proto_path=testpb --go_out=plugins=grpc,paths=source_relative:testpb testpb/echo.proto
    18  
    19  func TestGrpcmetrics(t *testing.T) {
    20  	RegisterFailHandler(Fail)
    21  	RunSpecs(t, "Grpcmetrics Suite")
    22  }
    23  
    24  //go:generate counterfeiter -o fakes/echo_service.go --fake-name EchoServiceServer . echoServiceServer
    25  
    26  type echoServiceServer interface {
    27  	testpb.EchoServiceServer
    28  }