mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
images: Rework the golden tests
This commit is contained in:
@@ -105,6 +105,12 @@ func TestOptWithOSFs() TestOpt {
|
||||
}
|
||||
}
|
||||
|
||||
func TestOptWithPrintAndKeepTempDir(b bool) TestOpt {
|
||||
return func(c *IntegrationTestConfig) {
|
||||
c.PrintAndKeepTempDir = b
|
||||
}
|
||||
}
|
||||
|
||||
// TestOptWithWorkingDir allows setting any config optiona as a function al option.
|
||||
func TestOptWithConfig(fn func(c *IntegrationTestConfig)) TestOpt {
|
||||
return func(c *IntegrationTestConfig) {
|
||||
|
Reference in New Issue
Block a user