MCPcopy Create free account
hub / github.com/cloudspannerecosystem/spanner-cli / createRow

Function createRow

decoder_test.go:33–47  ·  view source on GitHub ↗
(t *testing.T, values []interface{})

Source from the content-addressed store, hash-verified

31)
32
33func createRow(t *testing.T, values []interface{}) *spanner.Row {
34 t.Helper()
35
36 // column names are not important in this test, so use dummy name
37 names := make([]string, len(values))
38 for i := 0; i < len(names); i++ {
39 names[i] = "dummy"
40 }
41
42 row, err := spanner.NewRow(names, values)
43 if err != nil {
44 t.Fatalf("Creating spanner row failed unexpectedly: %v", err)
45 }
46 return row
47}
48
49func createColumnValue(t *testing.T, value interface{}) spanner.GenericColumnValue {
50 t.Helper()

Callers 2

createColumnValueFunction · 0.85
TestDecodeRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected