(t *testing.T)
| 128 | } |
| 129 | |
| 130 | func TestScheduleCodemod_DailyAround_NoChange(t *testing.T) { |
| 131 | codemod := getScheduleAtToAroundCodemod() |
| 132 | |
| 133 | content := `--- |
| 134 | on: |
| 135 | schedule: |
| 136 | - cron: daily around 09:00 |
| 137 | --- |
| 138 | |
| 139 | # Test` |
| 140 | |
| 141 | frontmatter := map[string]any{ |
| 142 | "on": map[string]any{ |
| 143 | "schedule": []any{ |
| 144 | map[string]any{"cron": "daily around 09:00"}, |
| 145 | }, |
| 146 | }, |
| 147 | } |
| 148 | |
| 149 | result, applied, err := codemod.Apply(content, frontmatter) |
| 150 | |
| 151 | require.NoError(t, err) |
| 152 | assert.False(t, applied) |
| 153 | assert.Equal(t, content, result) |
| 154 | } |
| 155 | |
| 156 | func TestScheduleCodemod_StandardCron_NoChange(t *testing.T) { |
| 157 | codemod := getScheduleAtToAroundCodemod() |
nothing calls this directly
no test coverage detected