Implement main, optional seconds, and from file
This commit is contained in:
@@ -6,7 +6,6 @@ func TestValidCronFail(t *testing.T) {
|
||||
cases := []string{
|
||||
"a 1 1 1 1",
|
||||
"1 1 1 1",
|
||||
"1 1 1 1 1 1",
|
||||
"@minutely",
|
||||
}
|
||||
|
||||
@@ -22,10 +21,12 @@ func TestValidCronPass(t *testing.T) {
|
||||
"1 1 1 1 1",
|
||||
"* * 1 1 1",
|
||||
"@hourly",
|
||||
"1 1 1 1 1 1",
|
||||
"@daily",
|
||||
"@yearly",
|
||||
"@weekly",
|
||||
"* */5 1 1 1",
|
||||
"*/5 * */5 1 1 1",
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
|
||||
Reference in New Issue
Block a user