aboutsummaryrefslogtreecommitdiff
path: root/config/error_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-04-05 17:43:35 +0200
committerJulien Dessaux2021-04-05 17:43:35 +0200
commit9fe53dc97f96e2dc29adfd776a469aa0b7f89d28 (patch)
treee58d863af14d88bd234b2b71c45dc081831be804 /config/error_test.go
parentAdded 60 seconds caching to navitia api departures requests (diff)
downloadtrains-9fe53dc97f96e2dc29adfd776a469aa0b7f89d28.tar.gz
trains-9fe53dc97f96e2dc29adfd776a469aa0b7f89d28.tar.bz2
trains-9fe53dc97f96e2dc29adfd776a469aa0b7f89d28.zip
Reworked error handling for better and simpler tests
Diffstat (limited to 'config/error_test.go')
-rw-r--r--config/error_test.go20
1 files changed, 20 insertions, 0 deletions
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()
+}