testcase

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Overview

Package testcase is the editor of a test case: its steps, variables and settings, as a form or as YAML, with the results of its last run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func Open

func Open(tc *domain.TestCase, deps container.Deps) *Container

func (*Container) Close

func (c *Container) Close()

func (*Container) Dirty

func (c *Container) Dirty() bool

func (*Container) Export

func (c *Container) Export()

Export writes the case, the requests it sends and optionally an environment to one file that `chapar-cli test` runs without the workspace.

func (*Container) ID

func (c *Container) ID() string

func (*Container) Kind

func (c *Container) Kind() container.Kind

func (*Container) Layout

func (c *Container) Layout(ctx *ui.Ctx) ui.View

func (*Container) Save

func (c *Container) Save() error

func (*Container) Send

func (c *Container) Send()

Send runs the whole case, as ⌘Enter does for a request.

func (*Container) TabIcon

func (c *Container) TabIcon(th *theme.Theme) (icons.Icon, render.Color)

TabIcon marks test case tabs apart from requests.

func (*Container) Title

func (c *Container) Title() string

Jump to

Keyboard shortcuts

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