Atlas › Test

empty_string

Exact test identity: go.temporal.io/server/common/sqlquery/TestConvertSqlValue/empty_string

Package
go.temporal.io/server/common/sqlquery
Suite / test hierarchy
TestConvertSqlValue/empty_string
Test
empty_string
Introduced at
query.go ×1 Frontier kind: Joint frontier
Covered ranges
2
Covered lines
4
Covered files
1

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/common/sqlquery/query.go 4 covered LOC · 2 ranges

Open complete file

49
50 // ParseValue returns a string, int64 or float64 if the parsing succeeds.
51 > func ParseValue(sqlValue string) (any, error) { query.go
52 > if sqlValue == "" {
53 > return "", nil query.go
54 > }
55
56 if sqlValue[0] == '\'' && sqlValue[len(sqlValue)-1] == '\'' {