mock_runtime_cache.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Copyright 2017 The Kubernetes Authors.
  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. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by mockery v1.0.0
  14. package testing
  15. import container "k8s.io/kubernetes/pkg/kubelet/container"
  16. import mock "github.com/stretchr/testify/mock"
  17. import time "time"
  18. // MockRuntimeCache is an autogenerated mock type for the RuntimeCache type
  19. type MockRuntimeCache struct {
  20. mock.Mock
  21. }
  22. // ForceUpdateIfOlder provides a mock function with given fields: _a0
  23. func (_m *MockRuntimeCache) ForceUpdateIfOlder(_a0 time.Time) error {
  24. ret := _m.Called(_a0)
  25. var r0 error
  26. if rf, ok := ret.Get(0).(func(time.Time) error); ok {
  27. r0 = rf(_a0)
  28. } else {
  29. r0 = ret.Error(0)
  30. }
  31. return r0
  32. }
  33. // GetPods provides a mock function with given fields:
  34. func (_m *MockRuntimeCache) GetPods() ([]*container.Pod, error) {
  35. ret := _m.Called()
  36. var r0 []*container.Pod
  37. if rf, ok := ret.Get(0).(func() []*container.Pod); ok {
  38. r0 = rf()
  39. } else {
  40. if ret.Get(0) != nil {
  41. r0 = ret.Get(0).([]*container.Pod)
  42. }
  43. }
  44. var r1 error
  45. if rf, ok := ret.Get(1).(func() error); ok {
  46. r1 = rf()
  47. } else {
  48. r1 = ret.Error(1)
  49. }
  50. return r0, r1
  51. }