cuelang.org/go@v0.13.0/internal/core/toposort/testdata/issue3710.txtar (about) 1 -- input.cue -- 2 package p 3 4 #Exporter: { 5 _objects: {...} 6 _imports: [...] 7 8 objects: [ 9 for _, objs in _objects { 10 objs 11 } 12 for import in _imports for obj in import._export.objects { 13 obj 14 } 15 ] 16 } 17 18 out: #Exporter & { 19 _imports: [_app1] 20 } 21 _app1: { 22 _export: #Exporter & { 23 _imports: [_app2] 24 } 25 } 26 _app2: { 27 _export: #Exporter & { 28 _objects: leaf: leafField: "leaf value" 29 } 30 } 31 -- out/TestTopologicalSort/lexicographical=false -- 32 { 33 #Exporter: { 34 objects: [] 35 } 36 out: { 37 objects: [{ 38 leafField: "leaf value" 39 }] 40 } 41 } 42 -- out/TestTopologicalSort/lexicographical=true -- 43 { 44 #Exporter: { 45 objects: [] 46 } 47 out: { 48 objects: [{ 49 leafField: "leaf value" 50 }] 51 } 52 }