fakeclip

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fakeclip provides fake implementations of the clip.Clipper interface to be used for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() clip.Clipper

New creates a new testClipper to replace clip.Clipboard in tests.

func NewWithErr

func NewWithErr(readError error, writeError error) clip.Clipper

NewWithErr creates a new errClipper to replace clip.Clipbard in tests.

func NewWithValue

func NewWithValue(initial []byte) clip.Clipper

NewWithValue creates a new testClipper to replace clip.Clipboard in tests, that is initialized with a value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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