cconfigtest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package cconfigtest provides helper methods to test the cconfig package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyConfig

func NewEmptyConfig(t *testing.T) cconfig.Config

NewEmptyConfig is a helper method to create an empty app config

func SetupDirWithConfigs

func SetupDirWithConfigs(t *testing.T, configs ...string) cconfig.Dir

SetupDirWithConfigs creates a temp directory that can store config files. It creates base.toml, test.toml, and secrets.toml with the given strings. The directory is cleaned up after test run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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