tester_utils

package module
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: MIT Imports: 11 Imported by: 0

README

Tester Utils

This is a module shared between all tester programs.

For usage instructions, check the GoDoc.

Attribution

This project is forked from codecrafters-io/tester-utils and adapted for SystemQuest.

Original work Copyright © CodeCrafters
Modified work Copyright © SystemQuest

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCLI

func RunCLI(env map[string]string, definition tester_definition.TesterDefinition) int

RunCLI executes the tester based on user-provided env vars

func RunHTTPCLI added in v0.6.0

func RunHTTPCLI(testCases []httpcontext.HTTPTestCase, definition tester_definition.TesterDefinition, isDebug bool) int

RunHTTPCLI is the main entry point for HTTP-based testers This replaces RunCLI() for HTTP-only testing

Types

type HTTPTester added in v0.6.0

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

HTTPTester is a simplified tester for HTTP JSON-RPC 2.0 testing

func NewHTTPTester added in v0.6.0

func NewHTTPTester(testCases []httpcontext.HTTPTestCase, definition tester_definition.TesterDefinition, isDebug bool) (*HTTPTester, error)

NewHTTPTester creates a new HTTP tester

func (*HTTPTester) Run added in v0.6.0

func (t *HTTPTester) Run() bool

Run executes all test cases

type Tester

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

Jump to

Keyboard shortcuts

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