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.143.0
Published
Feb 1, 2025
Platform
windows/amd64
Imports
8 packages
Last checked
38 minutes ago

Tools for package owners.