From ba5fdd4bbaf74575eee7d8b7e294e61adf6c206e Mon Sep 17 00:00:00 2001 From: Mahad Zaryab Date: Sat, 25 Jan 2025 13:56:00 -0500 Subject: [PATCH] Add Mocks Signed-off-by: Mahad Zaryab --- storage/mocks/ArchiveCapable.go | 47 +++++++++++++++++++++++++++++++++ storage/mocks/Inheritable.go | 37 ++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 storage/mocks/ArchiveCapable.go create mode 100644 storage/mocks/Inheritable.go diff --git a/storage/mocks/ArchiveCapable.go b/storage/mocks/ArchiveCapable.go new file mode 100644 index 00000000000..aef23e66bf4 --- /dev/null +++ b/storage/mocks/ArchiveCapable.go @@ -0,0 +1,47 @@ +// Copyright (c) The Jaeger Authors. +// SPDX-License-Identifier: Apache-2.0 +// +// Run 'make generate-mocks' to regenerate. + +// Code generated by mockery. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" + +// ArchiveCapable is an autogenerated mock type for the ArchiveCapable type +type ArchiveCapable struct { + mock.Mock +} + +// IsArchiveCapable provides a mock function with no fields +func (_m *ArchiveCapable) IsArchiveCapable() bool { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for IsArchiveCapable") + } + + var r0 bool + if rf, ok := ret.Get(0).(func() bool); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(bool) + } + + return r0 +} + +// NewArchiveCapable creates a new instance of ArchiveCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewArchiveCapable(t interface { + mock.TestingT + Cleanup(func()) +}) *ArchiveCapable { + mock := &ArchiveCapable{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/storage/mocks/Inheritable.go b/storage/mocks/Inheritable.go new file mode 100644 index 00000000000..150bf34ab1e --- /dev/null +++ b/storage/mocks/Inheritable.go @@ -0,0 +1,37 @@ +// Copyright (c) The Jaeger Authors. +// SPDX-License-Identifier: Apache-2.0 +// +// Run 'make generate-mocks' to regenerate. + +// Code generated by mockery. DO NOT EDIT. + +package mocks + +import ( + storage "github.com/jaegertracing/jaeger/storage" + mock "github.com/stretchr/testify/mock" +) + +// Inheritable is an autogenerated mock type for the Inheritable type +type Inheritable struct { + mock.Mock +} + +// InheritSettingsFrom provides a mock function with given fields: other +func (_m *Inheritable) InheritSettingsFrom(other storage.Factory) { + _m.Called(other) +} + +// NewInheritable creates a new instance of Inheritable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewInheritable(t interface { + mock.TestingT + Cleanup(func()) +}) *Inheritable { + mock := &Inheritable{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +}