-
Notifications
You must be signed in to change notification settings - Fork 672
/
mock_user.go
80 lines (66 loc) · 2.28 KB
/
mock_user.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright (C) 2019-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ava-labs/avalanchego/utils/resource (interfaces: User)
// Package resource is a generated GoMock package.
package resource
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockUser is a mock of User interface.
type MockUser struct {
ctrl *gomock.Controller
recorder *MockUserMockRecorder
}
// MockUserMockRecorder is the mock recorder for MockUser.
type MockUserMockRecorder struct {
mock *MockUser
}
// NewMockUser creates a new mock instance.
func NewMockUser(ctrl *gomock.Controller) *MockUser {
mock := &MockUser{ctrl: ctrl}
mock.recorder = &MockUserMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockUser) EXPECT() *MockUserMockRecorder {
return m.recorder
}
// AvailableDiskBytes mocks base method.
func (m *MockUser) AvailableDiskBytes() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AvailableDiskBytes")
ret0, _ := ret[0].(uint64)
return ret0
}
// AvailableDiskBytes indicates an expected call of AvailableDiskBytes.
func (mr *MockUserMockRecorder) AvailableDiskBytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailableDiskBytes", reflect.TypeOf((*MockUser)(nil).AvailableDiskBytes))
}
// CPUUsage mocks base method.
func (m *MockUser) CPUUsage() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CPUUsage")
ret0, _ := ret[0].(float64)
return ret0
}
// CPUUsage indicates an expected call of CPUUsage.
func (mr *MockUserMockRecorder) CPUUsage() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CPUUsage", reflect.TypeOf((*MockUser)(nil).CPUUsage))
}
// DiskUsage mocks base method.
func (m *MockUser) DiskUsage() (float64, float64) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DiskUsage")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(float64)
return ret0, ret1
}
// DiskUsage indicates an expected call of DiskUsage.
func (mr *MockUserMockRecorder) DiskUsage() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiskUsage", reflect.TypeOf((*MockUser)(nil).DiskUsage))
}