1
0
Fork 0

Added tests for job package

This commit is contained in:
Julien Dessaux 2020-02-11 22:20:47 +01:00
parent c84817132d
commit 88757ef736
4 changed files with 54 additions and 1 deletions

10
job/job_test.go Normal file
View file

@ -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())
}
}