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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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