File: transform_fuzz.go

package info (click to toggle)
golang-github-jdkato-prose 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 12,904 kB
  • sloc: python: 115; makefile: 52; sh: 41
file content (22 lines) | stat: -rw-r--r-- 265 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// +build gofuzz

package transform

func Fuzz(data []byte) int {
	s := string(data)

	// Case transformations
	Simple(s)
	Snake(s)
	Dash(s)
	Dot(s)
	Constant(s)
	Pascal(s)
	Camel(s)

	// Title converters
	tc := NewTitleConverter(APStyle)
	tc.Title(s)

	return 0
}