1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2026-04-28 20:15:32 +02:00
Files
Carlos Alexandro Becker 295cda7af7 test: fuzz
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-09-23 16:38:12 -03:00

12 lines
199 B
Bash
Executable File

#!/bin/bash
pkg="$1"
timeout="$2"
grep "func Fuzz" "$pkg"/*.go |
cut -f2 -d' ' |
cut -f1 -d'(' |
while read -r f; do
go test -fuzztime="$timeout" -fuzz="$f" "$pkg"/...
done
go test "$pkg"/...