You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/rpcfuzz/cmd.go
+49-17Lines changed: 49 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -20,18 +20,21 @@ var (
20
20
usagestring
21
21
22
22
// flags
23
-
rpcUrl*string
24
-
testPrivateHexKey*string
25
-
testContractAddress*string
26
-
testNamespaces*string
27
-
testFuzz*bool
28
-
testFuzzNum*int
29
-
seed*int64
30
-
testOutputExportPath*string
31
-
testExportJson*bool
32
-
testExportCSV*bool
33
-
testExportMarkdown*bool
34
-
testExportHTML*bool
23
+
rpcUrl*string
24
+
testPrivateHexKey*string
25
+
testContractAddress*string
26
+
testNamespaces*string
27
+
testFuzz*bool
28
+
testFuzzNum*int
29
+
seed*int64
30
+
streamJSON*bool
31
+
streamCSV*bool
32
+
streamCompact*bool
33
+
streamHTML*bool
34
+
streamMarkdown*bool
35
+
outputFilter*string
36
+
summaryInterval*int
37
+
quietMode*bool
35
38
)
36
39
37
40
varRPCFuzzCmd=&cobra.Command{
@@ -61,11 +64,18 @@ func init() {
61
64
testFuzz=flagSet.Bool("fuzz", false, "Flag to indicate whether to fuzz input or not.")
62
65
testFuzzNum=flagSet.Int("fuzzn", 100, "Number of times to run the fuzzer per test.")
63
66
seed=flagSet.Int64("seed", 123456, "A seed for generating random values within the fuzzer")
64
-
testOutputExportPath=flagSet.String("export-path", "", "The directory export path of the output of the tests. Must pair this with either --json, --csv, --md, or --html")
65
-
testExportJson=flagSet.Bool("json", false, "Flag to indicate that output will be exported as a JSON.")
66
-
testExportCSV=flagSet.Bool("csv", false, "Flag to indicate that output will be exported as a CSV.")
67
-
testExportMarkdown=flagSet.Bool("md", false, "Flag to indicate that output will be exported as a Markdown.")
68
-
testExportHTML=flagSet.Bool("html", false, "Flag to indicate that output will be exported as a HTML.")
67
+
68
+
// Streamer type flags (mutually exclusive)
69
+
streamJSON=flagSet.Bool("json", false, "Stream output in JSON format")
70
+
streamCSV=flagSet.Bool("csv", false, "Stream output in CSV format")
71
+
streamCompact=flagSet.Bool("compact", false, "Stream output in compact format (default)")
72
+
streamHTML=flagSet.Bool("html", false, "Stream output in HTML format")
73
+
streamMarkdown=flagSet.Bool("md", false, "Stream output in Markdown format")
74
+
75
+
// Output control flags
76
+
outputFilter=flagSet.String("output", "all", "What to output: all, failures, summary")
77
+
summaryInterval=flagSet.Int("summary-interval", 0, "Print summary every N tests (0=disabled)")
78
+
quietMode=flagSet.Bool("quiet", false, "Only show final summary")
0 commit comments