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

Function TestIsStatusFunc

pkg/workflow/expression_optimizer_test.go:764–772  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

762}
763
764func TestIsStatusFunc(t *testing.T) {
765 assert.True(t, isStatusFunc(fn("always")), "always is a status func")
766 assert.True(t, isStatusFunc(fn("success")), "success is a status func")
767 assert.True(t, isStatusFunc(fn("failure")), "failure is a status func")
768 assert.True(t, isStatusFunc(fn("cancelled")), "cancelled is a status func")
769 assert.False(t, isStatusFunc(fn("contains")), "contains is not a status func")
770 assert.False(t, isStatusFunc(fn("startsWith")), "startsWith is not a status func")
771 assert.False(t, isStatusFunc(expr("x")), "ExpressionNode is not a status func")
772}
773
774func TestNodesEqual(t *testing.T) {
775 a := expr("github.event_name == 'issues'")

Callers

nothing calls this directly

Calls 3

isStatusFuncFunction · 0.85
fnFunction · 0.85
exprFunction · 0.85

Tested by

no test coverage detected