Test/add mock tests (#24)

* add scrape unit test using httpmock lib
This commit is contained in:
T.v.Dein
2023-12-29 13:47:18 +01:00
committed by Thomas von Dein
parent c4e88d98f2
commit f893f9c3d7
9 changed files with 279 additions and 2 deletions

View File

@@ -50,9 +50,10 @@ install: buildlocal
install -o $(UID) -g $(GID) -m 444 $(tool).1 $(PREFIX)/man/man1/
clean:
rm -rf $(tool) coverage.out testdata
rm -rf $(tool) coverage.out testdata t/out
test: clean
mkdir -p t/out
go test ./... $(ARGS)
testfuzzy: clean