1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package roadrunner import ( "github.com/stretchr/testify/assert" "testing" ) func TestWorkerError_Error(t *testing.T) { e := WorkerError("error") assert.Equal(t, "error", e.Error()) } func TestJobError_Error(t *testing.T) { e := JobError("error") assert.Equal(t, "error", e.Error()) }