v.io: v.io/x/ref/lib/discovery/plugins/testutil Index | Files

package testutil

import "v.io/x/ref/lib/discovery/plugins/testutil"

Index

Package Files

util.go

func Advertise(ctx *context.T, p idiscovery.Plugin, adinfos ...*idiscovery.AdInfo) (func(), error)

func MatchFound Uses

func MatchFound(adinfos []idiscovery.AdInfo, wants ...idiscovery.AdInfo) bool

func MatchLost Uses

func MatchLost(adinfos []idiscovery.AdInfo, wants ...idiscovery.AdInfo) bool

func Scan Uses

func Scan(ctx *context.T, p idiscovery.Plugin, interfaceName string) (<-chan *idiscovery.AdInfo, func(), error)

func ScanAndMatch Uses

func ScanAndMatch(ctx *context.T, p idiscovery.Plugin, interfaceName string, wants ...idiscovery.AdInfo) error

func WaitUntilMatchFound Uses

func WaitUntilMatchFound(ch <-chan *idiscovery.AdInfo, want idiscovery.AdInfo) error

func WaitUntilMatchLost Uses

func WaitUntilMatchLost(ch <-chan *idiscovery.AdInfo, want idiscovery.AdInfo) error

Package testutil imports 7 packages (graph). Updated 2018-08-24. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).