2024-04-11 05:37:59 +02:00
// Code generated by mockery v2.42.2. DO NOT EDIT.
2020-03-03 09:41:54 +01:00
package scan
import (
context "context"
2020-03-24 13:45:45 +01:00
artifact "github.com/goharbor/harbor/src/controller/artifact"
2020-03-03 09:41:54 +01:00
mock "github.com/stretchr/testify/mock"
)
// Checker is an autogenerated mock type for the Checker type
type Checker struct {
mock . Mock
}
// IsScannable provides a mock function with given fields: ctx, _a1
func ( _m * Checker ) IsScannable ( ctx context . Context , _a1 * artifact . Artifact ) ( bool , error ) {
ret := _m . Called ( ctx , _a1 )
2024-04-11 05:37:59 +02:00
if len ( ret ) == 0 {
panic ( "no return value specified for IsScannable" )
}
2020-03-03 09:41:54 +01:00
var r0 bool
2023-03-11 01:16:11 +01:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * artifact . Artifact ) ( bool , error ) ) ; ok {
return rf ( ctx , _a1 )
}
2020-03-03 09:41:54 +01:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * artifact . Artifact ) bool ) ; ok {
r0 = rf ( ctx , _a1 )
} else {
r0 = ret . Get ( 0 ) . ( bool )
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * artifact . Artifact ) error ) ; ok {
r1 = rf ( ctx , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-06-07 10:04:33 +02:00
2023-11-05 07:37:25 +01:00
// NewChecker creates a new instance of Checker. 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 NewChecker ( t interface {
2022-06-07 10:04:33 +02:00
mock . TestingT
Cleanup ( func ( ) )
2023-11-05 07:37:25 +01:00
} ) * Checker {
2022-06-07 10:04:33 +02:00
mock := & Checker { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}