testconf

package
v0.0.0-...-1160ede Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testconf provides utilities to create test configs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAndProject

func ConfigAndProject(t *testing.T, data *ConfigData) (*config.Config, *config.Project)

ConfigAndProject gets a test config and project.

func ConfigAndProjectWithTestConfigYAML

func ConfigAndProjectWithTestConfigYAML(t *testing.T, data *ConfigData, testYAML string) (*config.Config, *config.Project)

ConfigAndProjectWithTestConfigYAML gets a test config and project from a testYAML.

func ConfigBeforeInit

func ConfigBeforeInit(t *testing.T, data *ConfigData) *config.Config

ConfigBeforeInit gets config that did not call the init() function.

func ConfigBeforeInitWithTestConfigYAML

func ConfigBeforeInitWithTestConfigYAML(t *testing.T, data *ConfigData, testYAML string) *config.Config

ConfigBeforeInitWithTestConfigYAML gets config from a testYAML that did not call the init() function.

Types

type ConfigData

type ConfigData struct {
	ExtraProjectConfig string
}

ConfigData configures a config.

Jump to

Keyboard shortcuts

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