Discover Packages
github.com/stubbedev/lys-ui
component
componenttest
package
Version:
v0.2.8
Opens a new window with list of versions in this module.
Published: Nov 4, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package componenttest runs components without a compositor: a Loop
that queues invoked work until the test drives it.
Loop is a component.Loop driven by hand. Invoke queues work from any
goroutine; Pass and Settle run it on the calling goroutine.
func (l *Loop ) Invoke(fn func())
Invoke queues fn for the next pass. After Stop it is dropped.
func (l *Loop ) OnStop(fn func()) (cancel func())
OnStop registers fn to run at Stop, in reverse registration order.
After Stop it runs at once.
Pass runs the work queued so far, like one loop pass: work queued
while it runs waits for the next pass. It reports how much ran.
Settle runs passes until no work is queued.
Stop ends the loop: queued work is dropped, stop hooks run, and later
Invokes are dropped.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.