MCPcopy Create free account
hub / github.com/golang/appengine / testGetStructCodec

Function testGetStructCodec

datastore/prop_test.go:513–524  ·  view source on GitHub ↗
(t *testing.T, good []interface{}, bad []interface{})

Source from the content-addressed store, hash-verified

511}
512
513func testGetStructCodec(t *testing.T, good []interface{}, bad []interface{}) {
514 for _, x := range good {
515 if _, err := getStructCodec(reflect.TypeOf(x)); err != nil {
516 t.Errorf("type %T: got non-nil error (%s), want nil", x, err)
517 }
518 }
519 for _, x := range bad {
520 if _, err := getStructCodec(reflect.TypeOf(x)); err == nil {
521 t.Errorf("type %T: got nil error, want non-nil", x)
522 }
523 }
524}
525
526func TestNilKeyIsStored(t *testing.T) {
527 x := struct {

Callers 2

TestRepeatedPropertyNameFunction · 0.70

Calls 1

getStructCodecFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…