Documentation
¶
Overview ¶
Package dialogtest is the shell's dialog host as a test sees it: it serves dev.stubbe.lys.PortalDialogs1 on the test's bus, records each password and access dialog, and answers them from the test's script.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct {
// Password answers a password dialog.
Password func(portaldialogs.PasswordRequest) (bool, string, []portaldialogs.Selection)
// Access answers an access dialog.
Access func(portaldialogs.AccessRequest) (bool, []portaldialogs.Selection)
// contains filtered or unexported fields
}
Host records the dialogs it is asked for and answers them with Password and Access, which dismiss every dialog while nil.
func (*Host) Asked ¶
func (h *Host) Asked() ([]portaldialogs.PasswordRequest, []portaldialogs.AccessRequest)
Asked is every password and access dialog shown so far, in order.