github.com/helmwave/helmwave@v0.36.4-0.20240509190856-b35563eba4c6/pkg/plan/mock_registry_export_test.go (about)

     1  package plan
     2  
     3  import (
     4  	"github.com/sirupsen/logrus"
     5  	"github.com/stretchr/testify/mock"
     6  )
     7  
     8  type MockRegistryConfig struct {
     9  	mock.Mock
    10  }
    11  
    12  func (r *MockRegistryConfig) Install() error {
    13  	return r.Called().Error(0)
    14  }
    15  
    16  func (r *MockRegistryConfig) Host() string {
    17  	return r.Called().String(0)
    18  }
    19  
    20  func (r *MockRegistryConfig) Logger() *logrus.Entry {
    21  	return r.Called().Get(0).(*logrus.Entry)
    22  }
    23  
    24  func (r *MockRegistryConfig) Validate() error {
    25  	return r.Called().Error(0)
    26  }