@@ -45,7 +45,7 @@ func TestCleanTemplate(t *testing.T) {
4545 }
4646 defer syscall .Unlink (templateFilePath )
4747 ioutil .WriteFile (templateFilePath , []byte (templateContent ), 0644 )
48- cleanFuncMap := GetFuncMap ("DUMMY" , true , "" )
48+ cleanFuncMap := GetFuncMap ("DUMMY" , "" , true , "" )
4949 content , _ := ExecuteTemplate (templateFilePath , cleanFuncMap , false )
5050 if content != expectedOutput {
5151 t .Errorf ("Expected content \" %s\" . Got \" %s\" " , expectedOutput , content )
@@ -64,7 +64,7 @@ func TestCleanAndTagTemplate(t *testing.T) {
6464 }
6565 defer syscall .Unlink (templateFilePath )
6666 ioutil .WriteFile (templateFilePath , []byte (templateContent ), 0644 )
67- cleanFuncMap := GetFuncMap ("DUMMY" , true , cleanTag )
67+ cleanFuncMap := GetFuncMap ("DUMMY" , "" , true , cleanTag )
6868 content , _ := ExecuteTemplate (templateFilePath , cleanFuncMap , false )
6969 if content != expectedOutput {
7070 t .Errorf ("Expected content \" %s\" . Got \" %s\" " , expectedOutput , content )
@@ -100,7 +100,7 @@ func TestFailExecuteTemplate(t *testing.T) {
100100
101101func TestSsmFunctionExistsInFuncMap (t * testing.T ) {
102102 t .Logf ("\" ssm\" function should exist in function map." )
103- funcMap := GetFuncMap ("" , false , "" )
103+ funcMap := GetFuncMap ("" , "" , false , "" )
104104 keys := make ([]string , len (funcMap ))
105105 for k := range funcMap {
106106 keys = append (keys , k )
@@ -112,7 +112,7 @@ func TestSsmFunctionExistsInFuncMap(t *testing.T) {
112112
113113func TestSprigFunctionsExistInFuncMap (t * testing.T ) {
114114 t .Logf ("\" quote\" function (from sprig) should exist in function map." )
115- funcMap := GetFuncMap ("" , false , "" )
115+ funcMap := GetFuncMap ("" , "" , false , "" )
116116 keys := make ([]string , len (funcMap ))
117117 for k := range funcMap {
118118 keys = append (keys , k )
0 commit comments