--------------------------------------------------------------------------- Helper utilities --------------------------------------------------------------------------- --------------------------------------------------------------------------- Helper predicate tests (white-box) --------------------
(t *testing.T)
| 755 | // --------------------------------------------------------------------------- |
| 756 | |
| 757 | func 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 | |
| 764 | func TestIsStatusFunc(t *testing.T) { |
| 765 | assert.True(t, isStatusFunc(fn("always")), "always is a status func") |
nothing calls this directly
no test coverage detected