testinfra

package
v0.0.0-...-34898ab Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGrafDir

func CreateGrafDir(t *testing.T, opts ...GrafargOpts) (string, string)

CreateGrafDir creates the Grafarg directory.

func SetUpDatabase

func SetUpDatabase(t *testing.T, grafDir string) *sqlstore.SQLStore

SetUpDatabase sets up the Grafarg database.

func StartGrafarg

func StartGrafarg(t *testing.T, grafDir, cfgPath string, sqlStore *sqlstore.SQLStore) string

StartGrafarg starts a Grafarg server. The server address is returned.

Types

type GrafargOpts

type GrafargOpts struct {
	EnableCSP bool
}

Jump to

Keyboard shortcuts

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