fix acc test prefix

This commit is contained in:
Shreyas Goenka 2023-07-04 15:59:25 +02:00
parent b66b69bc27
commit 3d06fb67e8
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@ func assertFileContains(t *testing.T, path string, substr string) {
assert.Contains(t, string(b), substr)
}
func TestTemplateInitializationForDevConfig(t *testing.T) {
func TestAccTemplateInitializationForDevConfig(t *testing.T) {
// create target directory with the input config
tmp := t.TempDir()
f, err := os.Create(filepath.Join(tmp, "config.json"))
@ -48,7 +48,7 @@ func TestTemplateInitializationForDevConfig(t *testing.T) {
assertFileContains(t, filepath.Join(tmp, "development_project", ".github"), "This is a development project")
}
func TestTemplateInitializationForProdConfig(t *testing.T) {
func TestAccTemplateInitializationForProdConfig(t *testing.T) {
// create target directory with the input config
tmp := t.TempDir()

View File

@ -8,7 +8,8 @@ import (
var errSkipThisFile = errors.New("skip generating this file")
var HelperFuncs = template.FuncMap{
"skipThisFile": func() error {
panic(errSkipThisFile)
"skipThisFile": func() (any, error) {
return nil, errSkipThisFile
// panic(errSkipThisFile)
},
}