dubbo.apache.org/dubbo-go/v3@v3.1.1/remoting/xds/mapping/mocks/InterfaceMapHandler.go (about)

     1  /*
     2   * Licensed to the Apache Software Foundation (ASF) under one or more
     3   * contributor license agreements.  See the NOTICE file distributed with
     4   * this work for additional information regarding copyright ownership.
     5   * The ASF licenses this file to You under the Apache License, Version 2.0
     6   * (the "License"); you may not use this file except in compliance with
     7   * the License.  You may obtain a copy of the License at
     8   *
     9   *     http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  
    18  // Code generated by mockery v2.9.4. DO NOT EDIT.
    19  
    20  package mocks
    21  
    22  import (
    23  	mock "github.com/stretchr/testify/mock"
    24  )
    25  
    26  // InterfaceMapHandler is an autogenerated mock type for the InterfaceMapHandler type
    27  type InterfaceMapHandler struct {
    28  	mock.Mock
    29  }
    30  
    31  // GetHostAddrMap provides a mock function with given fields: _a0
    32  func (_m *InterfaceMapHandler) GetHostAddrMap(_a0 string) (string, error) {
    33  	ret := _m.Called(_a0)
    34  
    35  	var r0 string
    36  	if rf, ok := ret.Get(0).(func(string) string); ok {
    37  		r0 = rf(_a0)
    38  	} else {
    39  		r0 = ret.Get(0).(string)
    40  	}
    41  
    42  	var r1 error
    43  	if rf, ok := ret.Get(1).(func(string) error); ok {
    44  		r1 = rf(_a0)
    45  	} else {
    46  		r1 = ret.Error(1)
    47  	}
    48  
    49  	return r0, r1
    50  }
    51  
    52  // Register provides a mock function with given fields: _a0
    53  func (_m *InterfaceMapHandler) Register(_a0 string) error {
    54  	ret := _m.Called(_a0)
    55  
    56  	var r0 error
    57  	if rf, ok := ret.Get(0).(func(string) error); ok {
    58  		r0 = rf(_a0)
    59  	} else {
    60  		r0 = ret.Error(0)
    61  	}
    62  
    63  	return r0
    64  }
    65  
    66  // UnRegister provides a mock function with given fields: _a0
    67  func (_m *InterfaceMapHandler) UnRegister(_a0 string) error {
    68  	ret := _m.Called(_a0)
    69  
    70  	var r0 error
    71  	if rf, ok := ret.Get(0).(func(string) error); ok {
    72  		r0 = rf(_a0)
    73  	} else {
    74  		r0 = ret.Error(0)
    75  	}
    76  
    77  	return r0
    78  }
    79  
    80  // GetDubboGoMetadata provides a mock function
    81  func (_m *InterfaceMapHandler) GetDubboGoMetadata() (map[string]string, error) {
    82  	ret := _m.Called()
    83  
    84  	var r0 map[string]string
    85  	if rf, ok := ret.Get(0).(func() map[string]string); ok {
    86  		r0 = rf()
    87  	} else {
    88  		r0 = ret.Get(0).(map[string]string)
    89  	}
    90  
    91  	var r1 error
    92  	if rf, ok := ret.Get(1).(func() error); ok {
    93  		r1 = rf()
    94  	} else {
    95  		r1 = ret.Error(1)
    96  	}
    97  
    98  	return r0, r1
    99  }