fixtures

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TS

func TS(dt string) time.Time

Types

type Appointments

type Appointments struct {
	Start      time.Time
	Duration   int64
	N          int64
	Slots      int64
	Properties map[string]interface{}
}

func (Appointments) Setup

func (c Appointments) Setup(fixtures map[string]interface{}) (interface{}, error)

func (Appointments) Teardown

func (c Appointments) Teardown(fixture interface{}) error

type AppointmentsServer

type AppointmentsServer struct {
}

func (AppointmentsServer) Setup

func (c AppointmentsServer) Setup(fixtures map[string]interface{}) (interface{}, error)

func (AppointmentsServer) Teardown

func (c AppointmentsServer) Teardown(fixture interface{}) error

type Client

type Client struct {
	ResetDB bool
}

func (Client) Setup

func (c Client) Setup(fixtures map[string]interface{}) (interface{}, error)

func (Client) Teardown

func (c Client) Teardown(fixture interface{}) error

type Mediator

type Mediator struct {
}

func (Mediator) Setup

func (c Mediator) Setup(fixtures map[string]interface{}) (interface{}, error)

Creates a new mediator and

func (Mediator) Teardown

func (c Mediator) Teardown(fixture interface{}) error

type Provider

type Provider struct {
	Name        string
	Street      string
	City        string
	ZipCode     string
	Description string
	Accessible  bool
	Confirm     bool
	StoreData   bool
}

func (Provider) Setup

func (c Provider) Setup(fixtures map[string]interface{}) (interface{}, error)

Creates a new provider and

func (Provider) Teardown

func (c Provider) Teardown(fixture interface{}) error

type ProviderAndAppointments

type ProviderAndAppointments struct {
	Provider     *helpers.Provider
	Appointments []*services.SignedAppointment
}

type ProvidersAndAppointments

type ProvidersAndAppointments struct {
	BaseProvider     Provider
	BaseAppointments Appointments
	Providers        int64
	Concurrency      int64
}

func (ProvidersAndAppointments) Setup

func (c ProvidersAndAppointments) Setup(fixtures map[string]interface{}) (interface{}, error)

func (ProvidersAndAppointments) Teardown

func (c ProvidersAndAppointments) Teardown(fixture interface{}) error

type Settings

type Settings struct {
	Definitions services.Definitions
	LogLevel    services.Level
}

func (Settings) Setup

func (c Settings) Setup(fixtures map[string]interface{}) (interface{}, error)

func (Settings) Teardown

func (c Settings) Teardown(fixture interface{}) error

Jump to

Keyboard shortcuts

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