github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/einterfaces/mocks/OauthProvider.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make einterfaces-mocks`.
     4  
     5  package mocks
     6  
     7  import (
     8  	io "io"
     9  
    10  	model "github.com/vnforks/kid/v5/model"
    11  	mock "github.com/stretchr/testify/mock"
    12  )
    13  
    14  // OauthProvider is an autogenerated mock type for the OauthProvider type
    15  type OauthProvider struct {
    16  	mock.Mock
    17  }
    18  
    19  // GetUserFromJson provides a mock function with given fields: data
    20  func (_m *OauthProvider) GetUserFromJson(data io.Reader) *model.User {
    21  	ret := _m.Called(data)
    22  
    23  	var r0 *model.User
    24  	if rf, ok := ret.Get(0).(func(io.Reader) *model.User); ok {
    25  		r0 = rf(data)
    26  	} else {
    27  		if ret.Get(0) != nil {
    28  			r0 = ret.Get(0).(*model.User)
    29  		}
    30  	}
    31  
    32  	return r0
    33  }