github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/broker/automock/json_schema_validator.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	jsonschema "github.com/kyma-incubator/compass/components/director/pkg/jsonschema"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // JSONSchemaValidator is an autogenerated mock type for the JSONSchemaValidator type
    11  type JSONSchemaValidator struct {
    12  	mock.Mock
    13  }
    14  
    15  // ValidateString provides a mock function with given fields: json
    16  func (_m *JSONSchemaValidator) ValidateString(json string) (jsonschema.ValidationResult, error) {
    17  	ret := _m.Called(json)
    18  
    19  	var r0 jsonschema.ValidationResult
    20  	if rf, ok := ret.Get(0).(func(string) jsonschema.ValidationResult); ok {
    21  		r0 = rf(json)
    22  	} else {
    23  		r0 = ret.Get(0).(jsonschema.ValidationResult)
    24  	}
    25  
    26  	var r1 error
    27  	if rf, ok := ret.Get(1).(func(string) error); ok {
    28  		r1 = rf(json)
    29  	} else {
    30  		r1 = ret.Error(1)
    31  	}
    32  
    33  	return r0, r1
    34  }