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

Function TestPutIdentifierWithContent

pkg/sql/ast/coverage_test.go:608–618  ·  view source on GitHub ↗

TestPutIdentifierWithContent tests returning Identifiers to pool

(t *testing.T)

Source from the content-addressed store, hash-verified

606
607// TestPutIdentifierWithContent tests returning Identifiers to pool
608func TestPutIdentifierWithContent(t *testing.T) {
609 t.Run("simple identifier", func(t *testing.T) {
610 id := GetIdentifier()
611 id.Name = "column_name"
612 PutIdentifier(id)
613 })
614
615 t.Run("nil identifier", func(t *testing.T) {
616 PutIdentifier(nil) // Should not panic
617 })
618}
619
620// TestPutBinaryExpressionWithContent tests returning BinaryExpressions to pool
621func TestPutBinaryExpressionWithContent(t *testing.T) {

Callers

nothing calls this directly

Calls 3

GetIdentifierFunction · 0.85
PutIdentifierFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected