2025-02-14 17:05:12 +02:00
// Code generated by mockery v2.52.2. DO NOT EDIT.
2024-12-16 16:07:55 +01:00
package compat
import (
context "context"
mock "github.com/stretchr/testify/mock"
v1alpha1 "sigs.k8s.io/node-feature-discovery/api/image-compatibility/v1alpha1"
)
// MockArtifactClient is an autogenerated mock type for the ArtifactClient type
type MockArtifactClient struct {
mock . Mock
}
// FetchCompatibilitySpec provides a mock function with given fields: ctx
func ( _m * MockArtifactClient ) FetchCompatibilitySpec ( ctx context . Context ) ( * v1alpha1 . Spec , error ) {
ret := _m . Called ( ctx )
if len ( ret ) == 0 {
panic ( "no return value specified for FetchCompatibilitySpec" )
}
var r0 * v1alpha1 . Spec
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) ( * v1alpha1 . Spec , error ) ) ; ok {
return rf ( ctx )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * v1alpha1 . Spec ) ; ok {
r0 = rf ( ctx )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * v1alpha1 . Spec )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( ctx )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// NewMockArtifactClient creates a new instance of MockArtifactClient. 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 NewMockArtifactClient ( t interface {
mock . TestingT
Cleanup ( func ( ) )
} ) * MockArtifactClient {
mock := & MockArtifactClient { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}