Commit b0184bb 1 parent 852425a commit b0184bb Copy full SHA for b0184bb
File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
"testing"
26
26
"time"
27
27
28
+ fuzz "github.com/AdaLogics/go-fuzz-headers"
28
29
"github.com/ProtonMail/go-crypto/openpgp"
29
30
extgogit "github.com/go-git/go-git/v5"
30
31
"github.com/go-git/go-git/v5/config"
@@ -86,6 +87,18 @@ func init() {
86
87
log .SetLogger (logr .New (log.NullLogSink {}))
87
88
}
88
89
90
+ func Fuzz_templateMsg (f * testing.F ) {
91
+ f .Add ("template" , []byte {})
92
+ f .Add ("" , []byte {})
93
+
94
+ f .Fuzz (func (t * testing.T , template string , seed []byte ) {
95
+ var values TemplateData
96
+ fuzz .NewConsumer (seed ).GenerateStruct (& values )
97
+
98
+ _ , _ = templateMsg (template , & values )
99
+ })
100
+ }
101
+
89
102
func TestNewSourceManager (t * testing.T ) {
90
103
namespace := "test-ns"
91
104
gitRepoName := "foo"
You can’t perform that action at this time.
0 commit comments