From 9fe53dc97f96e2dc29adfd776a469aa0b7f89d28 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 5 Apr 2021 17:43:35 +0200 Subject: Reworked error handling for better and simpler tests --- config/error_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 config/error_test.go (limited to 'config/error_test.go') diff --git a/config/error_test.go b/config/error_test.go new file mode 100644 index 0000000..f9807c1 --- /dev/null +++ b/config/error_test.go @@ -0,0 +1,20 @@ +package config + +import "testing" + +func TestErrorsCoverage(t *testing.T) { + openErr := OpenError{} + _ = openErr.Error() + _ = openErr.Unwrap() + decodeErr := DecodeError{} + _ = decodeErr.Error() + _ = decodeErr.Unwrap() + invalidAddressErr := InvalidAddressError{} + _ = invalidAddressErr.Error() + _ = invalidAddressErr.Unwrap() + invalidPortErr := InvalidPortError{} + _ = invalidPortErr.Error() + _ = invalidPortErr.Unwrap() + invalidTokenErr := InvalidTokenError{} + _ = invalidTokenErr.Error() +} -- cgit v1.2.3