httpcontext

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPContext

type HTTPContext struct {
	// IsDebug enables debug logging
	IsDebug bool

	// TestCases is the list of test cases to run
	TestCases []HTTPTestCase
}

HTTPContext holds configuration for HTTP-based testing

func NewHTTPContext

func NewHTTPContext(testCases []HTTPTestCase, isDebug bool) HTTPContext

NewHTTPContext creates a new HTTP context with test cases

func (HTTPContext) Print

func (c HTTPContext) Print()

Print prints debug information

func (HTTPContext) Validate

func (c HTTPContext) Validate() error

Validate checks if the context is valid

type HTTPTestCase

type HTTPTestCase struct {
	// Slug is the unique identifier for the test case
	Slug string

	// TesterLogPrefix is the prefix for tester logs (e.g., "stage-1")
	TesterLogPrefix string

	// Title is the display title (e.g., "Stage #1: Basic Interface")
	Title string
}

HTTPTestCase represents a test case for HTTP testing

Jump to

Keyboard shortcuts

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