github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/plugin/plugintest/mock/mock.go (about)

     1  // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  // This package provides aliases for the contents of "github.com/stretchr/testify/mock". Because
     5  // external packages can't import our vendored dependencies, this is necessary for them to be able
     6  // to fully utilize the plugintest package.
     7  package mock
     8  
     9  import (
    10  	"github.com/stretchr/testify/mock"
    11  )
    12  
    13  const (
    14  	Anything = mock.Anything
    15  )
    16  
    17  type Arguments = mock.Arguments
    18  type AnythingOfTypeArgument = mock.AnythingOfTypeArgument
    19  type Call = mock.Call
    20  type Mock = mock.Mock
    21  type TestingT = mock.TestingT
    22  
    23  func AnythingOfType(t string) AnythingOfTypeArgument {
    24  	return mock.AnythingOfType(t)
    25  }
    26  
    27  func AssertExpectationsForObjects(t TestingT, testObjects ...interface{}) bool {
    28  	return mock.AssertExpectationsForObjects(t, testObjects...)
    29  }
    30  
    31  func MatchedBy(fn interface{}) interface{} {
    32  	return mock.MatchedBy(fn)
    33  }