vcstest

package
v0.4.210-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package vcstest serves the repository scripts in cmd/go/testdata/vcstest using the vcweb script engine.

Index

Constants

This section is empty.

Variables

View Source
var Hosts = []string{
	"vcs-test.golang.org",
}

Functions

func TLSClient

func TLSClient(certFile string) (*http.Client, error)

TLSClient returns an http.Client that can talk to the httptest.Server whose certificate is written to the given file path.

Types

type Server

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

func NewServer

func NewServer() (srv *Server, err error)

NewServer returns a new test-local vcweb server that serves VCS requests for modules with paths that begin with "vcs-test.golang.org" using the scripts in cmd/go/testdata/vcstest.

func (*Server) Close

func (srv *Server) Close() error

func (*Server) WriteCertificateFile

func (srv *Server) WriteCertificateFile() (string, error)

Jump to

Keyboard shortcuts

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