MCPcopy Create free account
hub / github.com/github/gh-aw / TestScheduleCodemod_DailyAround_NoChange

Function TestScheduleCodemod_DailyAround_NoChange

pkg/cli/codemod_schedule_test.go:130–154  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

128}
129
130func TestScheduleCodemod_DailyAround_NoChange(t *testing.T) {
131 codemod := getScheduleAtToAroundCodemod()
132
133 content := `---
134on:
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
156func TestScheduleCodemod_StandardCron_NoChange(t *testing.T) {
157 codemod := getScheduleAtToAroundCodemod()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected