(t *testing.T, h map[string]*pb.SchemaUpdate, expected []nameType)
| 24 | } |
| 25 | |
| 26 | func checkSchema(t *testing.T, h map[string]*pb.SchemaUpdate, expected []nameType) { |
| 27 | if len(h) != len(expected) { |
| 28 | t.Errorf("In checkSchema, expected len(h) == len(expected)") |
| 29 | } |
| 30 | require.Len(t, h, len(expected)) |
| 31 | for _, nt := range expected { |
| 32 | typ, found := h[nt.name] |
| 33 | require.True(t, found, nt) |
| 34 | require.EqualValuesf(t, *nt.typ, *typ, "found in map: %+v\n expected: %+v", *typ, *nt.typ) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | var schemaVal = ` |
| 39 | age:int . |
no test coverage detected