Implement main, optional seconds, and from file

This commit is contained in:
bel
2020-03-13 04:40:02 +00:00
parent 82b4e53fa1
commit 2db4fc7176
7 changed files with 32 additions and 7 deletions

View File

@@ -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 {