Added tests for job package
This commit is contained in:
parent
c84817132d
commit
88757ef736
4 changed files with 54 additions and 1 deletions
10
job/job_test.go
Normal file
10
job/job_test.go
Normal 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())
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue