From 169e680a5fe3c11a5b4cc107d7c854b21dc592a8 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Tue, 12 May 2020 22:19:44 +0500 Subject: [PATCH] go test -cover in module mode. --- .pre-commit-hooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index afe23c3..faed2bd 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,3 +1,9 @@ +- id: go-test-mod-cover + name: 'go-test-mod-cover' + entry: 'go-test-mod-cover.sh' + language: 'script' + description: 'Run go test in module mode (GO111MODULE=on) with coverage report' + pass_filenames: false - id: golangci-lint-mod name: 'golangci-lint-mod' entry: 'golangci-lint-mod.sh'