mock

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 3 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 {
	client.Client
	// contains filtered or unexported fields
}

Client mock `Client` for testing.

func New

func New() (d *Client)

New creates a `Client` with an empty `FeatureMap` and `Config`.

func (*Client) DisableBoolFeature

func (d *Client) DisableBoolFeature(feature string)

DisableBoolFeature set a boolean feature to false

func (*Client) DisablePercentileFeature

func (d *Client) DisablePercentileFeature(feature string)

DisablePercentileFeature set a percentile feature to false

func (*Client) EnableBoolFeature

func (d *Client) EnableBoolFeature(feature string)

EnableBoolFeature set a boolean feature to true

func (*Client) EnablePercentileFeature

func (d *Client) EnablePercentileFeature(feature string)

EnablePercentileFeature set a percentile feature to true

func (*Client) Features added in v0.3.0

func (d *Client) Features() models.FeatureScopes

Features `features` accessor

func (*Client) SetBoolFeature added in v0.3.4

func (d *Client) SetBoolFeature(feature string, value bool)

SetBoolFeature set a boolean feature to the provided boolean value

func (*Client) SetPercentileFeature added in v0.3.0

func (d *Client) SetPercentileFeature(feature string, val float64)

SetPercentileFeature set a percentile feature to an arbitrary value

func (*Client) Watch

func (d *Client) Watch() *Client

Watch noop for tests.

Jump to

Keyboard shortcuts

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