hellotest

package
v0.6.103 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package hellotest builds hello's components under a backplanetest harness, as NewState wires them, for the component tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree struct {
	H        *backplanetest.Harness
	StoreCfg *store.Config
	Store    deps.Dependency[*store.DB]
	GreetCfg *greeter.Config
	Greeter  *greeter.Greeter
}

Tree is a harness named hello with a store and a greeter under its root.

func New

func New(t *testing.T, vars map[string]string) *Tree

New builds the tree; greeter configuration comes from vars (names as in HELLO_GREETER_* without the prefix). Start it with t.H.Start().

Jump to

Keyboard shortcuts

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