type OauthAppUser … // GetOauthToken provides a mock function with given fields: func (_m *OauthAppUser) GetOauthToken() *oauth2.Token { … } // GetSession provides a mock function with given fields: func (_m *OauthAppUser) GetSession() string { … } // SetOauthToken provides a mock function with given fields: token func (_m *OauthAppUser) SetOauthToken(token *oauth2.Token) { … } // SetSession provides a mock function with given fields: session func (_m *OauthAppUser) SetSession(session string) { … } // NewOauthAppUser creates a new instance of OauthAppUser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewOauthAppUser(t interface { … }