github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/source/mocks/Source.go (about)

     1  // Code generated by mockery v2.31.4. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // Source is an autogenerated mock type for the Source type
    12  type Source struct {
    13  	mock.Mock
    14  }
    15  
    16  // Artifact provides a mock function with given fields: ctx, artifact, path
    17  func (_m *Source) Artifact(ctx context.Context, artifact string, path string) error {
    18  	ret := _m.Called(ctx, artifact, path)
    19  
    20  	var r0 error
    21  	if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
    22  		r0 = rf(ctx, artifact, path)
    23  	} else {
    24  		r0 = ret.Error(0)
    25  	}
    26  
    27  	return r0
    28  }
    29  
    30  // Security provides a mock function with given fields: path
    31  func (_m *Source) Security(path string) error {
    32  	ret := _m.Called(path)
    33  
    34  	var r0 error
    35  	if rf, ok := ret.Get(0).(func(string) error); ok {
    36  		r0 = rf(path)
    37  	} else {
    38  		r0 = ret.Error(0)
    39  	}
    40  
    41  	return r0
    42  }
    43  
    44  // SourceCode provides a mock function with given fields: ctx, repository, path, revision, submodule
    45  func (_m *Source) SourceCode(ctx context.Context, repository string, path string, revision string, submodule bool) error {
    46  	ret := _m.Called(ctx, repository, path, revision, submodule)
    47  
    48  	var r0 error
    49  	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, bool) error); ok {
    50  		r0 = rf(ctx, repository, path, revision, submodule)
    51  	} else {
    52  		r0 = ret.Error(0)
    53  	}
    54  
    55  	return r0
    56  }
    57  
    58  // NewSource creates a new instance of Source. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    59  // The first argument is typically a *testing.T value.
    60  func NewSource(t interface {
    61  	mock.TestingT
    62  	Cleanup(func())
    63  }) *Source {
    64  	mock := &Source{}
    65  	mock.Mock.Test(t)
    66  
    67  	t.Cleanup(func() { mock.AssertExpectations(t) })
    68  
    69  	return mock
    70  }