1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 00:57:15 +03:00

Merge pull request #390 from wader/dev-fuzz-help

dev,fuzz: Add some useful retrigger snippets
This commit is contained in:
Mattias Wadman 2022-08-22 15:21:27 +02:00 committed by GitHub
commit a3d05db894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,10 @@ update-gomod:
# TODO: as decode recovers panic and "repanics" unrecoverable errors this is a bit hacky at the moment
# fuzz code is not suppose to print to stderr so log to file
# Retrigger:
# cat format/testdata/fuzz/FuzzFormats/... | go run dev/fuzzbytes.go | go run . -d raw '. as $b | formats | keys[] as $f | $b | decode($f)'
# cat format/testdata/fuzz/FuzzFormats/... | go run dev/fuzzbytes.go | fq -d raw 'tobytes | tobase64'
# fq -n '"..." | frombase64 | ...'
.PHONY: fuzz
fuzz:
# in other terminal: tail -f /tmp/repanic