testmock

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package testmock provides an in-memory ClickStack API server for unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*httptest.Server
	// contains filtered or unexported fields
}

Server is a mock ClickStack API backed by in-memory maps.

func NewServer

func NewServer(t *testing.T) *Server

NewServer creates and starts a mock ClickStack API server. It returns the server URL and a cleanup function.

func (*Server) ProviderConfig

func (s *Server) ProviderConfig() string

ProviderConfig returns an HCL provider block pointing at this mock server.

Jump to

Keyboard shortcuts

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