Documentation ¶
Overview ¶
Package testbed implements Testing API for a testbed.
Index ¶
- func ATE(res *binding.Reservation, id string) (binding.ATE, error)
- func DUT(res *binding.Reservation, id string) (binding.DUT, error)
- func Device(res *binding.Reservation, id string) (binding.Device, error)
- func Port(rd binding.Device, id string) (*binding.Port, error)
- func Release(ctx context.Context) error
- func Reservation() (*binding.Reservation, error)
- func Reserve(ctx context.Context, fv *flags.Values) error
- func SetBinding(b binding.Binding)
- func SetReservationForTesting(r *binding.Reservation)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Release ¶
Release releases the testbed. This is a noop if the reservation is not currently reserved or if the reservation was fetched and not created.
func Reservation ¶
func Reservation() (*binding.Reservation, error)
Reservation returns the current reservation.
func SetReservationForTesting ¶
func SetReservationForTesting(r *binding.Reservation)
SetReservationForTesting sets Ondatra to a state in which the specified reservation has been reserved. A nil reservation argument sets Ondatra to an unreserved state. This is only called by fakebind for testing purposes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.