github.com/rohankumardubey/aresdb@v0.0.2-0.20190517170215-e54e3ca06b9c/memstore/mocks/Job.go (about)

     1  //  Copyright (c) 2017-2018 Uber Technologies, Inc.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by mockery v1.0.0. DO NOT EDIT.
    16  package mocks
    17  
    18  import common "github.com/uber/aresdb/memstore/common"
    19  
    20  import mock "github.com/stretchr/testify/mock"
    21  
    22  // Job is an autogenerated mock type for the Job type
    23  type Job struct {
    24  	mock.Mock
    25  }
    26  
    27  // GetIdentifier provides a mock function with given fields:
    28  func (_m *Job) GetIdentifier() string {
    29  	ret := _m.Called()
    30  
    31  	var r0 string
    32  	if rf, ok := ret.Get(0).(func() string); ok {
    33  		r0 = rf()
    34  	} else {
    35  		r0 = ret.Get(0).(string)
    36  	}
    37  
    38  	return r0
    39  }
    40  
    41  // JobType provides a mock function with given fields:
    42  func (_m *Job) JobType() common.JobType {
    43  	ret := _m.Called()
    44  
    45  	var r0 common.JobType
    46  	if rf, ok := ret.Get(0).(func() common.JobType); ok {
    47  		r0 = rf()
    48  	} else {
    49  		r0 = ret.Get(0).(common.JobType)
    50  	}
    51  
    52  	return r0
    53  }
    54  
    55  // Run provides a mock function with given fields:
    56  func (_m *Job) Run() error {
    57  	ret := _m.Called()
    58  
    59  	var r0 error
    60  	if rf, ok := ret.Get(0).(func() error); ok {
    61  		r0 = rf()
    62  	} else {
    63  		r0 = ret.Error(0)
    64  	}
    65  
    66  	return r0
    67  }
    68  
    69  // String provides a mock function with given fields:
    70  func (_m *Job) String() string {
    71  	ret := _m.Called()
    72  
    73  	var r0 string
    74  	if rf, ok := ret.Get(0).(func() string); ok {
    75  		r0 = rf()
    76  	} else {
    77  		r0 = ret.Get(0).(string)
    78  	}
    79  
    80  	return r0
    81  }