testhttp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testhttp hosts an httptest server for official SDK adapters. Tests inject Server.Client so the SDK talks HTTP without a GraphAPI fake.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*httptest.Server
}

Server is an httptest.Server. Official clients should use Client().

func New

func New(tb testing.TB, handler http.Handler) *Server

New starts a server and registers Cleanup to close it.

Jump to

Keyboard shortcuts

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