ippprint

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package ippprint implements printing with IPP options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collate

func Collate() string

Collate enables collation.

func ProxyRun

func ProxyRun(ctx context.Context, s *testing.State, p *Params)

ProxyRun is similar to Run but uses proxylppprint instead of lpprint.

func Run

func Run(ctx context.Context, s *testing.State, p *Params)

Run executes the main test logic with p.Options included in the lp command.

func WithCopies

func WithCopies(n int) string

WithCopies properly formats a copies option.

func WithJobPassword

func WithJobPassword(pass string) string

WithJobPassword properly formats a job-password option.

func WithResolution

func WithResolution(res string) string

WithResolution properly formats a printer-resolution option.

Types

type Params

type Params struct {
	PPDFile      string   // Name of the ppd used to print the job.
	PrintFile    string   // The file to print.
	ExpectedFile string   // The file output should be compared to.
	Options      []string // Options to be passed to the filter to change output.
}

Params struct used by all ipp print tests for parameterized tests.

Jump to

Keyboard shortcuts

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