MCPcopy
hub / github.com/segmentio/ksuid / TestSqlValuer

Function TestSqlValuer

ksuid_test.go:192–202  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

190}
191
192func TestSqlValuer(t *testing.T) {
193 id, _ := Parse(maxStringEncoded)
194
195 if v, err := id.Value(); err != nil {
196 t.Error(err)
197 } else if s, ok := v.(string); !ok {
198 t.Error("not a string value")
199 } else if s != maxStringEncoded {
200 t.Error("bad string value::", s)
201 }
202}
203
204func TestSqlValuerNilValue(t *testing.T) {
205 if v, err := Nil.Value(); err != nil {

Callers

nothing calls this directly

Calls 2

ParseFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…