images: Rework the golden tests

This commit is contained in:
Bjørn Erik Pedersen
2025-01-07 17:42:04 +01:00
parent cfa0801815
commit 9cad8d38ca
130 changed files with 332 additions and 324 deletions

View File

@@ -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) {