MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestPutCaseExpression

Function TestPutCaseExpression

pkg/sql/ast/pool_coverage_test.go:30–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestPutCaseExpression(t *testing.T) {
31 ce := GetCaseExpression()
32 ce.Value = &Identifier{Name: "x"}
33 ce.WhenClauses = append(ce.WhenClauses, WhenClause{Condition: &Identifier{Name: "1"}, Result: &Identifier{Name: "a"}})
34 ce.ElseClause = &Identifier{Name: "b"}
35 PutCaseExpression(ce)
36 PutCaseExpression(nil)
37}
38
39func TestPutBetweenExpression(t *testing.T) {
40 be := GetBetweenExpression()

Callers

nothing calls this directly

Calls 2

GetCaseExpressionFunction · 0.85
PutCaseExpressionFunction · 0.85

Tested by

no test coverage detected