Skip to content

Commit

Permalink
fix(gnovm): add fuzz cli and delete pkg/mod files
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaau committed Jan 7, 2025
1 parent 1525bf6 commit 612a264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gnovm/stdlibs/testing/fuzz.gno
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ func (f *F) handleFail() {
println("\n--- Trace:")
println(CoverageToString(coverage))
} else {
println("--- Trace:")
println("Most recently covered line: function", coverage[len(coverage)-1].co_name, "in line", coverage[len(coverage)-1].co_line)
println("\n--- Trace:")
println("Last covered line: function \""+coverage[len(coverage)-1].co_name+"\" in line", coverage[len(coverage)-1].co_line)
}
return
}
Expand Down Expand Up @@ -353,7 +353,7 @@ func (f *F) minimazeAndLogInput(seedContent []interface{}) {
}

func (f *F) reportF() {
println("PASS")
println("\n--- PASS")
println("Complete", f.fsm.Input_count, "Trials")
println("Found", (uint(f.fhm.hashNumber_counter.counter) + uint(1)), "coverage")
}
Expand Down
2 changes: 1 addition & 1 deletion gnovm/stdlibs/testing/testing.gno
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func fRunner(f *F, fn fuzzingFunc) {
recover()
dur := unixNano() - start
f.dur = formatDur(dur)
fmt.Fprintln(os.Stderr, "--- Elapsed "+f.dur+":")
fmt.Fprintln(os.Stderr, "\n--- Elapsed "+f.dur+":")
}()
fn(f)
}
Expand Down

0 comments on commit 612a264

Please sign in to comment.