storj/pkg/miniogw/logging/gw_mock_test.go
JT Olio 389e65d742
miniogw: log all errors (#182)
* miniogw: log all errors

* tests added

* doc comment to satisfy linter

* fix test failure
2018-07-31 08:10:37 -06:00

77 lines
2.2 KiB
Go

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/minio/minio/cmd (interfaces: Gateway)
// Package logging is a generated GoMock package.
package logging
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
cmd "github.com/minio/minio/cmd"
auth "github.com/minio/minio/pkg/auth"
)
// MockGateway is a mock of Gateway interface
type MockGateway struct {
ctrl *gomock.Controller
recorder *MockGatewayMockRecorder
}
// MockGatewayMockRecorder is the mock recorder for MockGateway
type MockGatewayMockRecorder struct {
mock *MockGateway
}
// NewMockGateway creates a new mock instance
func NewMockGateway(ctrl *gomock.Controller) *MockGateway {
mock := &MockGateway{ctrl: ctrl}
mock.recorder = &MockGatewayMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockGateway) EXPECT() *MockGatewayMockRecorder {
return m.recorder
}
// Name mocks base method
func (m *MockGateway) Name() string {
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name
func (mr *MockGatewayMockRecorder) Name() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockGateway)(nil).Name))
}
// NewGatewayLayer mocks base method
func (m *MockGateway) NewGatewayLayer(arg0 auth.Credentials) (cmd.ObjectLayer, error) {
ret := m.ctrl.Call(m, "NewGatewayLayer", arg0)
ret0, _ := ret[0].(cmd.ObjectLayer)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NewGatewayLayer indicates an expected call of NewGatewayLayer
func (mr *MockGatewayMockRecorder) NewGatewayLayer(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewGatewayLayer", reflect.TypeOf((*MockGateway)(nil).NewGatewayLayer), arg0)
}
// Production mocks base method
func (m *MockGateway) Production() bool {
ret := m.ctrl.Call(m, "Production")
ret0, _ := ret[0].(bool)
return ret0
}
// Production indicates an expected call of Production
func (mr *MockGatewayMockRecorder) Production() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Production", reflect.TypeOf((*MockGateway)(nil).Production))
}