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

Function TestIsBoolLiteral

pkg/workflow/expression_optimizer_test.go:757–762  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Helper utilities --------------------------------------------------------------------------- --------------------------------------------------------------------------- Helper predicate tests (white-box) --------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

755// ---------------------------------------------------------------------------
756
757func TestIsBoolLiteral(t *testing.T) {
758 assert.True(t, isBoolLiteral(boolLit(true), true))
759 assert.True(t, isBoolLiteral(boolLit(false), false))
760 assert.False(t, isBoolLiteral(boolLit(true), false))
761 assert.False(t, isBoolLiteral(expr("x"), true))
762}
763
764func TestIsStatusFunc(t *testing.T) {
765 assert.True(t, isStatusFunc(fn("always")), "always is a status func")

Callers

nothing calls this directly

Calls 3

isBoolLiteralFunction · 0.85
boolLitFunction · 0.85
exprFunction · 0.85

Tested by

no test coverage detected