2022-08-22 08:21:13 +02:00
// Code generated by mockery v2.14.0. DO NOT EDIT.
2021-12-03 07:34:02 +01:00
package model
import (
model "github.com/goharbor/harbor/src/pkg/accessory/model"
mock "github.com/stretchr/testify/mock"
)
// Accessory is an autogenerated mock type for the Accessory type
type Accessory struct {
mock . Mock
}
2022-01-05 04:13:40 +01:00
// Display provides a mock function with given fields:
func ( _m * Accessory ) Display ( ) bool {
ret := _m . Called ( )
var r0 bool
if rf , ok := ret . Get ( 0 ) . ( func ( ) bool ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( bool )
}
return r0
}
2021-12-03 07:34:02 +01:00
// GetData provides a mock function with given fields:
func ( _m * Accessory ) GetData ( ) model . AccessoryData {
ret := _m . Called ( )
var r0 model . AccessoryData
if rf , ok := ret . Get ( 0 ) . ( func ( ) model . AccessoryData ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( model . AccessoryData )
}
return r0
}
// IsHard provides a mock function with given fields:
func ( _m * Accessory ) IsHard ( ) bool {
ret := _m . Called ( )
var r0 bool
if rf , ok := ret . Get ( 0 ) . ( func ( ) bool ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( bool )
}
return r0
}
// IsSoft provides a mock function with given fields:
func ( _m * Accessory ) IsSoft ( ) bool {
ret := _m . Called ( )
var r0 bool
if rf , ok := ret . Get ( 0 ) . ( func ( ) bool ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( bool )
}
return r0
}
// Kind provides a mock function with given fields:
func ( _m * Accessory ) Kind ( ) string {
ret := _m . Called ( )
var r0 string
if rf , ok := ret . Get ( 0 ) . ( func ( ) string ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( string )
}
return r0
}
2022-06-07 10:04:33 +02:00
2022-08-22 08:21:13 +02:00
type mockConstructorTestingTNewAccessory interface {
2022-06-07 10:04:33 +02:00
mock . TestingT
Cleanup ( func ( ) )
}
// NewAccessory creates a new instance of Accessory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2022-08-22 08:21:13 +02:00
func NewAccessory ( t mockConstructorTestingTNewAccessory ) * Accessory {
2022-06-07 10:04:33 +02:00
mock := & Accessory { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}