graphsshortcuttest

package
v0.0.0-...-56a2066 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package graphsshortcuttest has common code for tests of implementations of graphsshortcut.Store.

Index

Constants

This section is empty.

Variables

View Source
var SubTests = map[string]SubTestFunction{
	"GraphsShortcut_InsertGet":      InsertGet,
	"GraphsShortcut_GetNonExistent": GetNonExistent,
}

SubTests are all the subtests we have for graphsshortcut.Store.

Functions

func GetNonExistent

func GetNonExistent(t *testing.T, store graphsshortcut.Store)

GraphsShortcut_GetNonExistent tests that we fail when retrieving an unknown shortcut.

func InsertGet

func InsertGet(t *testing.T, store graphsshortcut.Store)

GraphsShortcut_InsertGet does the core testing of an instance of graphsshortcut.Store.

Types

type SubTestFunction

type SubTestFunction func(t *testing.T, store graphsshortcut.Store)

SubTestFunction is a func we will call to test one aspect of an implementation of graphsshortcut.Store.

Jump to

Keyboard shortcuts

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