github.com/sykesm/fabric@v1.1.0-preview.0.20200129034918-2aa12b1a0181/common/deliver/deliver_suite_test.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package deliver_test 8 9 import ( 10 "testing" 11 12 "github.com/hyperledger/fabric/common/deliver" 13 . "github.com/onsi/ginkgo" 14 . "github.com/onsi/gomega" 15 ) 16 17 //go:generate counterfeiter -o mock/filtered_response_sender.go -fake-name FilteredResponseSender . filteredResponseSender 18 19 type filteredResponseSender interface { 20 deliver.ResponseSender 21 deliver.Filtered 22 } 23 24 //go:generate counterfeiter -o mock/private_data_response_sender.go -fake-name PrivateDataResponseSender . privateDataResponseSender 25 26 type privateDataResponseSender interface { 27 deliver.ResponseSender 28 } 29 30 func TestDeliver(t *testing.T) { 31 RegisterFailHandler(Fail) 32 RunSpecs(t, "Deliver Suite") 33 }