2023-11-24 08:11:45 +01:00
// Code generated by mockery v2.22.1. DO NOT EDIT.
2020-03-14 14:39:44 +01:00
package distribution
import (
distribution "github.com/docker/distribution"
mock "github.com/stretchr/testify/mock"
)
// Manifest is an autogenerated mock type for the Manifest type
type Manifest struct {
mock . Mock
}
// Payload provides a mock function with given fields:
func ( _m * Manifest ) Payload ( ) ( string , [ ] byte , error ) {
ret := _m . Called ( )
var r0 string
2023-11-24 08:11:45 +01:00
var r1 [ ] byte
var r2 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( string , [ ] byte , error ) ) ; ok {
return rf ( )
}
2020-03-14 14:39:44 +01:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) string ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( string )
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) [ ] byte ) ; ok {
r1 = rf ( )
} else {
if ret . Get ( 1 ) != nil {
r1 = ret . Get ( 1 ) . ( [ ] byte )
}
}
if rf , ok := ret . Get ( 2 ) . ( func ( ) error ) ; ok {
r2 = rf ( )
} else {
r2 = ret . Error ( 2 )
}
return r0 , r1 , r2
}
// References provides a mock function with given fields:
func ( _m * Manifest ) References ( ) [ ] distribution . Descriptor {
ret := _m . Called ( )
var r0 [ ] distribution . Descriptor
if rf , ok := ret . Get ( 0 ) . ( func ( ) [ ] distribution . Descriptor ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] distribution . Descriptor )
}
}
return r0
}
2022-06-07 10:04:33 +02:00
2022-08-22 08:21:13 +02:00
type mockConstructorTestingTNewManifest interface {
2022-06-07 10:04:33 +02:00
mock . TestingT
Cleanup ( func ( ) )
}
// NewManifest creates a new instance of Manifest. 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 NewManifest ( t mockConstructorTestingTNewManifest ) * Manifest {
2022-06-07 10:04:33 +02:00
mock := & Manifest { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}