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

Function TestCommonWorkflowNamesAreValid

pkg/cli/interactive_test.go:84–95  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

82}
83
84func TestCommonWorkflowNamesAreValid(t *testing.T) {
85 // Ensure all suggested workflow names are themselves valid
86 if len(commonWorkflowNames) == 0 {
87 t.Error("commonWorkflowNames should not be empty")
88 }
89
90 for _, name := range commonWorkflowNames {
91 if err := ValidateWorkflowName(name); err != nil {
92 t.Errorf("commonWorkflowNames contains invalid workflow name: %q (error: %v)", name, err)
93 }
94 }
95}
96
97func TestCommonWorkflowNamesHasExpectedPatterns(t *testing.T) {
98 // Verify that common workflow patterns are included

Callers

nothing calls this directly

Calls 3

ValidateWorkflowNameFunction · 0.85
ErrorMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected