aboutsummaryrefslogtreecommitdiff
path: root/pkg/database/error_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-04-09 23:56:16 +0200
committerJulien Dessaux2021-04-09 23:56:16 +0200
commit824226ef686d604bc3b1e8675143dabfe8df6555 (patch)
tree913e16e3ac767f89bcb668500d7c3ef53fe58423 /pkg/database/error_test.go
parentMade config tests more specific (diff)
downloadtrains-824226ef686d604bc3b1e8675143dabfe8df6555.tar.gz
trains-824226ef686d604bc3b1e8675143dabfe8df6555.tar.bz2
trains-824226ef686d604bc3b1e8675143dabfe8df6555.zip
Began implementing a database backend
Diffstat (limited to 'pkg/database/error_test.go')
-rw-r--r--pkg/database/error_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/database/error_test.go b/pkg/database/error_test.go
new file mode 100644
index 0000000..8031305
--- /dev/null
+++ b/pkg/database/error_test.go
@@ -0,0 +1,15 @@
+package database
+
+import "testing"
+
+func TestErrorsCoverage(t *testing.T) {
+ initErr := InitError{}
+ _ = initErr.Error()
+ _ = initErr.Unwrap()
+ migrationErr := MigrationError{}
+ _ = migrationErr.Error()
+ _ = migrationErr.Unwrap()
+ transactionErr := TransactionError{}
+ _ = transactionErr.Error()
+ _ = transactionErr.Unwrap()
+}