Atlas › Test

not_quoted_string

Exact test identity: go.temporal.io/server/common/sqlquery/TestExtractStringValue/not_quoted_string

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

Co-introduced tests

4 other tests enter at the same concept.

Covered source

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

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

Open complete file

33 }
34
35 > func ExtractStringValue(s string) (string, error) { query.go
36 > if len(s) >= 2 && s[0] == '\'' && s[len(s)-1] == '\'' {
37 return s[1 : len(s)-1], nil
38 }
39 > return "", fmt.Errorf("value %s is not a string value", s) query.go
40 }
41