From 1afbff106c2a6d1388cb98be5db7e4cbb10b001a Mon Sep 17 00:00:00 2001 From: Dmitrii Ovechkin Date: Wed, 27 Dec 2023 09:53:34 +0100 Subject: [PATCH] do not verify every when stub --- registry/registry.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/registry/registry.go b/registry/registry.go index 7020e68..1930143 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -43,10 +43,6 @@ func TearDown() { if reg.mockContext.reporter == nil { reg.mockContext.reporter.Errorf("Cannot TearDown since SetUp function wasn't called") } - - for _, v := range reg.mapping { - v.CheckUnusedStubs() - } } func Mock[T any]() T {