File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ import (
1717
1818func FuzzGatewayAPIToIR (f * testing.F ) {
1919 f .Fuzz (func (t * testing.T , data []byte ) {
20- fuzzConsumer := fuzz .NewConsumer (data )
20+ fc := fuzz .NewConsumer (data )
2121 resources := & resource.Resources {}
22- if err := fuzzConsumer .GenerateStruct (resources ); err != nil {
22+ if err := fc .GenerateStruct (resources ); err != nil {
2323 return
2424 }
25-
26- if resources . GatewayClass = = nil {
25+ addMissingResources , err := fc . GetBool ()
26+ if err ! = nil {
2727 return
2828 }
2929
@@ -32,7 +32,7 @@ func FuzzGatewayAPIToIR(f *testing.F) {
3232 if err != nil {
3333 return
3434 }
35- rs , err := resource .LoadResourcesFromYAMLBytes (yamlBytes , true )
35+ rs , err := resource .LoadResourcesFromYAMLBytes (yamlBytes , addMissingResources )
3636 if err != nil {
3737 return
3838 }
You can’t perform that action at this time.
0 commit comments