package vcstest
import "cmd/go/internal/vcweb/vcstest"
Package vcstest serves the repository scripts in cmd/go/testdata/vcstest using the vcweb script engine.
Index ¶
Variables ¶
var Hosts = []string{ "vcs-test.golang.org", }
Functions ¶
func TLSClient ¶
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 ¶
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 (*Server) WriteCertificateFile ¶
Source Files ¶
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 18 minutes ago –
Tools for package owners.