github.com/anjalikarhana/fabric@v2.1.1+incompatible/core/middleware/middleware_suite_test.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package middleware_test
     8  
     9  import (
    10  	"net/http"
    11  
    12  	. "github.com/onsi/ginkgo"
    13  	. "github.com/onsi/gomega"
    14  
    15  	"testing"
    16  )
    17  
    18  func TestMiddleware(t *testing.T) {
    19  	RegisterFailHandler(Fail)
    20  	RunSpecs(t, "Middleware Suite")
    21  }
    22  
    23  //go:generate counterfeiter -o fakes/http_handler.go --fake-name HTTPHandler . httpHandler
    24  
    25  type httpHandler interface {
    26  	http.Handler
    27  }