Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ctx ¶
type Ctx struct {
// contains filtered or unexported fields
}
Ctx is a mock implementation of vango.Ctx for testing.
func (*Ctx) Dispatch ¶
func (c *Ctx) Dispatch(fn func())
Dispatch queues a function to run on the simulated event loop.
func (*Ctx) DrainDispatch ¶
DrainDispatch executes all queued dispatch functions. Returns the number of functions executed.
func (*Ctx) PendingDispatch ¶
PendingDispatch reports whether any dispatch callbacks are queued.
func (*Ctx) StdContext ¶
StdContext returns the underlying context.Context.
func (*Ctx) StormBudget ¶
func (c *Ctx) StormBudget() vango.StormBudgetChecker
StormBudget returns nil (no budget enforcement in tests).
Click to show internal directories.
Click to hide internal directories.