mocks

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client mocks out the OptimizelyAPI interface for use in testing

func (*Client) GetDatafile

func (c *Client) GetDatafile(environmentName string, projectID int) ([]byte, error)

func (*Client) GetEnvironmentByProjectID

func (c *Client) GetEnvironmentByProjectID(name string, projectID int) (api.Environment, error)

func (*Client) GetEnvironmentByProjectName

func (c *Client) GetEnvironmentByProjectName(name, projectName string) (api.Environment, error)

func (*Client) GetEnvironmentsByProjectID

func (c *Client) GetEnvironmentsByProjectID(projectID int) ([]api.Environment, error)

func (*Client) GetEnvironmentsByProjectName

func (c *Client) GetEnvironmentsByProjectName(projectName string) ([]api.Environment, error)

func (*Client) GetProjects

func (c *Client) GetProjects() ([]api.Project, error)

func (*Client) ReportEvents

func (c *Client) ReportEvents(events []byte) error

Jump to

Keyboard shortcuts

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