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

Function TestOptimizeExpression_NilInput

pkg/workflow/expression_optimizer_test.go:66–69  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Nil / leaf nodes ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

64// ---------------------------------------------------------------------------
65
66func TestOptimizeExpression_NilInput(t *testing.T) {
67 result := OptimizeExpression(nil)
68 assert.Nil(t, result, "nil input should return nil")
69}
70
71func TestOptimizeExpression_ExpressionNode(t *testing.T) {
72 node := expr("github.event_name == 'issues'")

Callers

nothing calls this directly

Calls 1

OptimizeExpressionFunction · 0.85

Tested by

no test coverage detected