Home / File/ helpers_fuzz_test.go — fiber Source File

helpers_fuzz_test.go — fiber Source File

Architecture documentation for helpers_fuzz_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.

File go FiberCore Context 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  dc3db0cd_a81d_56fa_9854_25258be3ed5e["helpers_fuzz_test.go"]
  d412afc8_b482_999e_79ca_16b6ad9c2e7c["testing"]
  dc3db0cd_a81d_56fa_9854_25258be3ed5e --> d412afc8_b482_999e_79ca_16b6ad9c2e7c
  style dc3db0cd_a81d_56fa_9854_25258be3ed5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

//go:build go1.18

package fiber

import (
	"testing"
)

// go test -v -run=^$ -fuzz=FuzzUtilsGetOffer
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

Dependencies

  • testing

Frequently Asked Questions

What does helpers_fuzz_test.go do?
helpers_fuzz_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Context subdomain.
What functions are defined in helpers_fuzz_test.go?
helpers_fuzz_test.go defines 1 function(s): FuzzUtilsGetOffer.
What does helpers_fuzz_test.go depend on?
helpers_fuzz_test.go imports 1 module(s): testing.
Where is helpers_fuzz_test.go in the architecture?
helpers_fuzz_test.go is located at helpers_fuzz_test.go (domain: FiberCore, subdomain: Context).

Analyze Your Own Codebase

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

Try Supermodel Free