aboutsummaryrefslogtreecommitdiff
path: root/job/job_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2020-02-11 22:20:47 +0100
committerJulien Dessaux2020-02-11 22:21:29 +0100
commit88757ef736987f23ca9404a1e0e71f04e35132e4 (patch)
treee912e985ffe0bf83fcfb61227ec7c5d7dfdf9ce8 /job/job_test.go
parentAdded LICENSE (diff)
downloadbareos-zabbix-check-88757ef736987f23ca9404a1e0e71f04e35132e4.tar.gz
bareos-zabbix-check-88757ef736987f23ca9404a1e0e71f04e35132e4.tar.bz2
bareos-zabbix-check-88757ef736987f23ca9404a1e0e71f04e35132e4.zip
Added tests for job package
Diffstat (limited to '')
-rw-r--r--job/job_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/job/job_test.go b/job/job_test.go
new file mode 100644
index 0000000..7420220
--- /dev/null
+++ b/job/job_test.go
@@ -0,0 +1,10 @@
+package job
+
+import "testing"
+
+func TestString(t *testing.T) {
+ j := Job{Name: "name", Timestamp: 10, Success: true}
+ if j.String() != "Job { Name: \"name\", Timestamp: \"10\", Success: \"true\" }" {
+ t.Errorf("test string error : %s", j.String())
+ }
+}