feat(do): add new Do function to simplify golden usage (#11)

Add new Do function whihc ecapsulates the common pattern of writing to
golden file if the update mechnism evaluates to true, followed by
immediately reading the file. Compresses four lines into one.
This commit is contained in:
2025-03-24 13:17:17 +00:00
committed by GitHub
parent 62e8344ff3
commit bc86ba7a6d
5 changed files with 339 additions and 97 deletions

View File

@@ -33,6 +33,7 @@ SHELL := env \
#
# Tools
#
# external tool
define tool # 1: binary-name, 2: go-import-path
TOOLS += $(TOOLDIR)/$(1)