Documentation
¶
Overview ¶
Package testutil provides test utilities for the updex project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorServer ¶
NewErrorServer creates a server that always returns the given status code.
func NewTestServer ¶
func NewTestServer(t *testing.T, files TestServerFiles) *httptest.Server
NewTestServer creates an httptest.Server that serves SHA256SUMS manifest and files. The server serves:
- /SHA256SUMS - manifest with hash + filename entries
- /{filename} - file content from Content map
Types ¶
Click to show internal directories.
Click to hide internal directories.