@@ -40,16 +40,16 @@ func TestRemoveShallowRemovesParents(t *testing.T) {
4040 atom := schema.Atom {
4141 Map : & schema.Map {
4242 Fields : []schema.StructField {
43- schema. StructField {
43+ {
4444 Name : "removeMap" ,
4545 Type : schema.TypeRef {
4646 Inlined : schema.Atom {Map : & schema.Map {
4747 Fields : []schema.StructField {
48- schema. StructField {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
48+ {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
4949 },
5050 },
5151 },
52- schema. StructField {
52+ {
5353 Name : "removeList" ,
5454 Type : schema.TypeRef {
5555 Inlined : schema.Atom {
@@ -58,31 +58,31 @@ func TestRemoveShallowRemovesParents(t *testing.T) {
5858 ElementType : schema.TypeRef {
5959 Inlined : schema.Atom {Map : & schema.Map {
6060 Fields : []schema.StructField {
61- schema. StructField {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
61+ {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
6262 },
6363 },
6464 },
6565 },
6666 },
6767 },
68- schema. StructField {
68+ {
6969 Name : "keep" ,
7070 Type : schema.TypeRef {
7171 Inlined : schema.Atom {
7272 Scalar : & str ,
7373 },
7474 },
7575 },
76- schema. StructField {
76+ {
7777 Name : "keepMap" ,
7878 Type : schema.TypeRef {
7979 Inlined : schema.Atom {Map : & schema.Map {
8080 Fields : []schema.StructField {
81- schema. StructField {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
81+ {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
8282 },
8383 },
8484 },
85- schema. StructField {
85+ {
8686 Name : "keepList" ,
8787 Type : schema.TypeRef {
8888 Inlined : schema.Atom {
@@ -91,7 +91,7 @@ func TestRemoveShallowRemovesParents(t *testing.T) {
9191 ElementType : schema.TypeRef {
9292 Inlined : schema.Atom {Map : & schema.Map {
9393 Fields : []schema.StructField {
94- schema. StructField {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
94+ {Name : "child" , Type : schema.TypeRef {Inlined : schema.Atom {Scalar : & str }}}}},
9595 },
9696 },
9797 },
0 commit comments