dialogtest

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 4 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.

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

func Serve

func Serve(t testing.TB, conn *dbus.Conn, h *Host)

Serve serves h on conn until the test ends.

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

Asked is every password and access dialog shown so far, in order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL