MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / FuzzRot13

Function FuzzRot13

cipher/rot13/rot13_test.go:72–82  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

70}
71
72func FuzzRot13(f *testing.F) {
73 for _, rot13TestInput := range rot13TestData {
74 f.Add(rot13TestInput.input)
75 }
76 f.Fuzz(func(t *testing.T, input string) {
77 if result := rot13(rot13(input)); result != input {
78 t.Fatalf("With input string %q was expecting %q but actual was %q",
79 input, input, result)
80 }
81 })
82}

Callers

nothing calls this directly

Calls 2

rot13Function · 0.85
AddMethod · 0.65

Tested by

no test coverage detected