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.144.2 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
13 hours ago

Tools for package owners.