From a155d2a49d0cb5176c66f9af7313809b506ebea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 4 Mar 2024 22:58:57 +0100 Subject: [PATCH] assert: restore CompareType, but mark it as deprecated Reinstate CompareType for full backward compatibility, but mark it as deprecated. --- assert/assertion_compare.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assert/assertion_compare.go b/assert/assertion_compare.go index 75800c3..0504ddb 100644 --- a/assert/assertion_compare.go +++ b/assert/assertion_compare.go @@ -7,6 +7,9 @@ import ( "time" ) +// Deprecated: CompareType has only ever been for internal use and has accidently been published since v1.6.0. Do not use it. +type CompareType = compareResult + type compareResult int const (