You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gojobs/jobs_test.go

17 lines
424 B

2 years ago
package gojobs
2 years ago
import (
"testing"
)
2 years ago
2 years ago
func TestSpec(t *testing.T) {
2 years ago
t.Log("每隔n秒执行一次", GetSpecSeconds(10))
t.Log("每隔n秒执行一次", GetFrequencySeconds(10))
2 years ago
2 years ago
t.Log("每隔n分钟执行一次", GetSpecMinutes(10))
t.Log("每隔n分钟执行一次", GetFrequencyMinutes(10))
2 years ago
2 years ago
t.Log("每天n点执行一次", GetSpecHour(10))
t.Log("每天n点执行一次", GetFrequencyHour(10))
2 years ago
}