Home / Function/ FuzzUtilsGetOffer() — fiber Function Reference

FuzzUtilsGetOffer() — fiber Function Reference

Architecture documentation for the FuzzUtilsGetOffer() function in helpers_fuzz_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  67838dc5_d74a_5c2f_bccd_a1be1f3870c1["FuzzUtilsGetOffer()"]
  dc3db0cd_a81d_56fa_9854_25258be3ed5e["helpers_fuzz_test.go"]
  67838dc5_d74a_5c2f_bccd_a1be1f3870c1 -->|defined in| dc3db0cd_a81d_56fa_9854_25258be3ed5e
  style 67838dc5_d74a_5c2f_bccd_a1be1f3870c1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

helpers_fuzz_test.go lines 10–23

func FuzzUtilsGetOffer(f *testing.F) {
	inputs := []string{
		`application/json; v=1; foo=bar; q=0.938; extra=param, text/plain;param="big fox"; q=0.43`,
		`text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8`,
		`*/*`,
		`text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c`,
	}
	for _, input := range inputs {
		f.Add(input)
	}
	f.Fuzz(func(_ *testing.T, spec string) {
		getOffer([]byte(spec), acceptsOfferType, `application/json;version=1;v=1;foo=bar`, `text/plain;param="big fox"`)
	})
}

Domain

Subdomains

Frequently Asked Questions

What does FuzzUtilsGetOffer() do?
FuzzUtilsGetOffer() is a function in the fiber codebase, defined in helpers_fuzz_test.go.
Where is FuzzUtilsGetOffer() defined?
FuzzUtilsGetOffer() is defined in helpers_fuzz_test.go at line 10.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free