sitetest

package
v0.0.0-...-5a527e5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Path points to the testdata directory, assuming you're in one of the
	// "vX/package" directories.
	Path = "../../testdata"
	// SitePath points to a populated test site directory.
	SitePath = Path + "/http"
	// BadPath points to an empty site directory.
	BadPath = Path + "/empty"
	// TemplatesPath points to the templates directory.
	TemplatesPath = Path + "/templates"
)

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(t *testing.T) site.Config

NewConfig returns a new site.Config for testing with.

Types

This section is empty.

Jump to

Keyboard shortcuts

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