From cb2348e72ac6009c3e762ad447ea7c1ecafc2e40 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 28 May 2024 23:58:39 +0300 Subject: [PATCH] Fix example names for HasType and HasInterface --- markers/{example_is_type_test.go => example_has_type_test.go} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename markers/{example_is_type_test.go => example_has_type_test.go} (96%) diff --git a/markers/example_is_type_test.go b/markers/example_has_type_test.go similarity index 96% rename from markers/example_is_type_test.go rename to markers/example_has_type_test.go index 00fbd2a..a7c6d70 100644 --- a/markers/example_is_type_test.go +++ b/markers/example_has_type_test.go @@ -26,7 +26,7 @@ type ExampleError struct{ msg string } func (e *ExampleError) Error() string { return e.msg } -func ExampleIsType() { +func ExampleHasType() { base := &ExampleError{"world"} err := errors.Wrap(base, "hello") fmt.Println(markers.HasType(err, (*ExampleError)(nil))) @@ -40,7 +40,7 @@ func ExampleIsType() { // false } -func ExampleIsInterface() { +func ExampleHasInterface() { base := &net.AddrError{ Addr: "ndn", Err: "ndn doesn't really exists :(",