github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/cmd/osnadmin/osnadmin_suite_test.go (about)

     1  /*
     2  Copyright hechain. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package main
     8  
     9  import (
    10  	"testing"
    11  
    12  	"github.com/hechain20/hechain/orderer/common/types"
    13  	cb "github.com/hyperledger/fabric-protos-go/common"
    14  	. "github.com/onsi/ginkgo"
    15  	. "github.com/onsi/gomega"
    16  )
    17  
    18  //go:generate counterfeiter -o mocks/channel_management.go -fake-name ChannelManagement . channelManagement
    19  
    20  type channelManagement interface {
    21  	ChannelList() types.ChannelList
    22  	ChannelInfo(channelID string) (types.ChannelInfo, error)
    23  	JoinChannel(channelID string, configBlock *cb.Block, isAppChannel bool) (types.ChannelInfo, error)
    24  	RemoveChannel(channelID string) error
    25  }
    26  
    27  func TestOsnadmin(t *testing.T) {
    28  	RegisterFailHandler(Fail)
    29  	RunSpecs(t, "osnadmin Suite")
    30  }