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

Function TestGetWorkflowStatus

pkg/cli/commands_test.go:985–998  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

983}
984
985func TestGetWorkflowStatus(t *testing.T) {
986
987 // Test with non-existent workflow
988 _, err := getWorkflowStatus("nonexistent-workflow", "", false)
989 if err == nil {
990 t.Error("getWorkflowStatus should return error for non-existent workflow")
991 }
992
993 // Test with empty workflow name
994 _, err = getWorkflowStatus("", "", false)
995 if err == nil {
996 t.Error("getWorkflowStatus should return error for empty workflow name")
997 }
998}

Callers

nothing calls this directly

Calls 2

getWorkflowStatusFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected