From 5596087916570eaed082e97d669ce135461b5636 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Mon, 10 Apr 2023 16:08:56 +0400 Subject: [PATCH] Fix coverage calculation --- coverme/app/coverage_test.go | 7 ++----- coverme/client/coverage_test.go | 2 ++ coverme/coverage_test.go | 3 +++ coverme/models/coverage_test.go | 2 ++ coverme/utils/coverage_test.go | 2 ++ 5 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 coverme/client/coverage_test.go create mode 100644 coverme/coverage_test.go create mode 100644 coverme/models/coverage_test.go create mode 100644 coverme/utils/coverage_test.go diff --git a/coverme/app/coverage_test.go b/coverme/app/coverage_test.go index 7f957c9..575406b 100644 --- a/coverme/app/coverage_test.go +++ b/coverme/app/coverage_test.go @@ -1,5 +1,2 @@ -//go:build !change - -package app - -// min coverage: app,client,models,utils 90% +// This file is required to correctly calculate coverage. DO NOT EDIT. +package app_test diff --git a/coverme/client/coverage_test.go b/coverme/client/coverage_test.go new file mode 100644 index 0000000..ff5ada9 --- /dev/null +++ b/coverme/client/coverage_test.go @@ -0,0 +1,2 @@ +// This file is required to correctly calculate coverage. DO NOT EDIT. +package client_test diff --git a/coverme/coverage_test.go b/coverme/coverage_test.go new file mode 100644 index 0000000..2ba5615 --- /dev/null +++ b/coverme/coverage_test.go @@ -0,0 +1,3 @@ +package main_test + +// min coverage: app,client,models,utils 90% diff --git a/coverme/models/coverage_test.go b/coverme/models/coverage_test.go new file mode 100644 index 0000000..2adbb5c --- /dev/null +++ b/coverme/models/coverage_test.go @@ -0,0 +1,2 @@ +// This file is required to correctly calculate coverage. DO NOT EDIT. +package models_test diff --git a/coverme/utils/coverage_test.go b/coverme/utils/coverage_test.go new file mode 100644 index 0000000..81f41c1 --- /dev/null +++ b/coverme/utils/coverage_test.go @@ -0,0 +1,2 @@ +// This file is required to correctly calculate coverage. DO NOT EDIT. +package utils_test