specifications

package
v0.0.0-...-08f8502 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurseSpecification

func CurseSpecification(t *testing.T, meany MeanGreeter)

func GreetSpecification

func GreetSpecification(t testing.TB, greeter Greeter)

Types

type GreetAdapter

type GreetAdapter func(name string) string

func (GreetAdapter) Greet

func (g GreetAdapter) Greet(name string) (string, error)

type Greeter

type Greeter interface {
	Greet(name string) (string, error)
}

type MeanGreeter

type MeanGreeter interface {
	Curse(name string) (string, error)
}

Jump to

Keyboard shortcuts

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