alertstest

package
v0.0.0-...-d1ada98 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package alertstest contains test utils for the alerts package.

Index

Constants

This section is empty.

Variables

View Source
var SubTests = map[string]SubTestFunction{
	"Store_SaveListDelete": Store_SaveListDelete,
	"Store_SaveWithID":     Store_SaveWithID,
}

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

Functions

func Store_SaveListDelete

func Store_SaveListDelete(t *testing.T, a alerts.Store)

Store_SaveListDelete tests that an alerts.Store instance operates as expected.

func Store_SaveWithID

func Store_SaveWithID(t *testing.T, a alerts.Store)

Store_SaveWithID tests we can save a new Alert with a given ID.

Types

type SubTestFunction

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

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

Jump to

Keyboard shortcuts

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