mock

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2016 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService struct {
	RegisterFn      func(handle string) error
	RegisterInvoked bool

	ListedFn      func(handle string) bool
	ListedInvoked bool

	AuthorizedFn      func(handle, rawurl string) bool
	AuthorizedInvoked bool

	NotifyFn      func(handle, loginurl string) error
	NotifyInvoked bool

	CloseFn      func() error
	CloseInvoked bool
}

UserService represents a mock implementation of multipass.UserService.

func (*UserService) Authorized

func (s *UserService) Authorized(handle, rawurl string) bool

Authorized invokes the mock implementation and marks the function as invoked.

func (*UserService) Close

func (s *UserService) Close() error

Close invokes the mock implementation and marks the function as invoked.

func (*UserService) Listed

func (s *UserService) Listed(handle string) bool

Listed invokes the mock implementation and marks the function as invoked.

func (*UserService) Notify

func (s *UserService) Notify(handle, loginurl string) error

Notify invokes the mock implementation and marks the function as invoked.

func (*UserService) Register

func (s *UserService) Register(handle string) error

Register invokes the mock implementation and marks the function as invoked.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL