rndtest

package
v0.0.0-...-8045d3c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rndtest provides helpers for tests that invoke a randomizer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store map[string][]string

Store implements randomizer.Store by mapping group names to sorted lists of strings. A nil Store will return errors for every operation.

func (Store) Delete

func (s Store) Delete(_ context.Context, name string) (existed bool, err error)

Delete implements randomizer.Store.

func (Store) Get

func (s Store) Get(_ context.Context, name string) ([]string, error)

Get implements randomizer.Store.

func (Store) List

func (s Store) List(_ context.Context) ([]string, error)

List implements randomizer.Store.

func (Store) Put

func (s Store) Put(_ context.Context, name string, options []string) error

Put implements randomizer.Store.

Jump to

Keyboard shortcuts

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