apptest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package apptest builds an app.App on fakes over a real git repository, for the tests of the packages that serve the app: command line, MCP, HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type World

type World struct {
	App     *app.App
	Engine  *enginetest.Fake
	Compose *composetest.Fake
	Root    string // the git repository "shop", with a web service publishing port 80
}

World is an app on fakes and the repository it works on.

func New

func New(t *testing.T) *World

New returns a world with a repository "shop" holding one commit and a compose.yml.

Jump to

Keyboard shortcuts

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