package testconfig

import "github.com/gohugoio/hugo/config/testconfig"

This package should only be used for testing.

Index

Functions

func GetTestConfig

func GetTestConfig(fs afero.Fs, cfg config.Provider) config.AllProvider

func GetTestConfigSectionFromStruct

func GetTestConfigSectionFromStruct(section string, v any) config.AllProvider

func GetTestConfigs

func GetTestConfigs(fs afero.Fs, cfg config.Provider) *allconfig.Configs

func GetTestDeps

func GetTestDeps(fs afero.Fs, cfg config.Provider, beforeInit ...func(*deps.Deps)) *deps.Deps

Source Files

testconfig.go

Version
v0.132.1
Published
Aug 13, 2024
Platform
darwin/amd64
Imports
8 packages
Last checked
2 hours ago

Tools for package owners.