github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/pkg/manager/http_test.go (about) 1 // Copyright 2024 syzkaller project authors. All rights reserved. 2 // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 package manager 5 6 import ( 7 "fmt" 8 "io" 9 "testing" 10 11 "github.com/google/syzkaller/pkg/testutil" 12 ) 13 14 func TestHttpTemplates(t *testing.T) { 15 for i, typ := range templTypes { 16 t.Run(fmt.Sprintf("%v_%T", i, typ.data), func(t *testing.T) { 17 data := testutil.RandValue(t, typ.data) 18 if err := typ.templ.Execute(io.Discard, data); err != nil { 19 t.Fatal(err) 20 } 21 }) 22 } 23 }