mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Try to fix the fuzz build
This commit is contained in:
parent
97934779ed
commit
5e2f128911
1 changed files with 0 additions and 24 deletions
|
@ -16,33 +16,9 @@
|
||||||
package transform
|
package transform
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gohugoio/hugo/common/loggers"
|
|
||||||
"github.com/gohugoio/hugo/config"
|
|
||||||
"github.com/gohugoio/hugo/deps"
|
|
||||||
"github.com/gohugoio/hugo/helpers"
|
|
||||||
"github.com/gohugoio/hugo/hugofs"
|
|
||||||
"github.com/gohugoio/hugo/langs"
|
|
||||||
"github.com/spf13/afero"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
type tstNoStringer struct{}
|
|
||||||
|
|
||||||
func newDeps(cfg config.Provider) *deps.Deps {
|
|
||||||
cfg.Set("contentDir", "content")
|
|
||||||
cfg.Set("i18nDir", "i18n")
|
|
||||||
|
|
||||||
l := langs.NewLanguage("en", cfg)
|
|
||||||
|
|
||||||
cs, _ := helpers.NewContentSpec(l, loggers.NewErrorLogger(), afero.NewMemMapFs())
|
|
||||||
|
|
||||||
return &deps.Deps{
|
|
||||||
Cfg: cfg,
|
|
||||||
Fs: hugofs.NewMem(l),
|
|
||||||
ContentSpec: cs,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func FuzzMarkdownify(data []byte) int {
|
func FuzzMarkdownify(data []byte) int {
|
||||||
v := viper.New()
|
v := viper.New()
|
||||||
v.Set("contentDir", "content")
|
v.Set("contentDir", "content")
|
||||||
|
|
Loading…
Reference in a new issue