@@ -132,15 +132,15 @@ bare: {
132
132
}
133
133
}
134
134
-- out/eval/stats --
135
- Leaks: 8
136
- Freed: 535
137
- Reused: 530
138
- Allocs: 13
139
- Retain: 52
135
+ Leaks: 11
136
+ Freed: 520
137
+ Reused: 515
138
+ Allocs: 16
139
+ Retain: 50
140
140
141
- Unifications: 531
142
- Conjuncts: 918
143
- Disjuncts: 585
141
+ Unifications: 519
142
+ Conjuncts: 894
143
+ Disjuncts: 570
144
144
-- out/eval --
145
145
Errors:
146
146
match.singleErr: invalid value {a:"foo"} (does not satisfy matchN(1, [{a:int}])): 0 matched, expected 1:
@@ -191,22 +191,6 @@ allOf.multiple1Err3: invalid value 5 (does not satisfy matchN(2, [math.MultipleO
191
191
./in.cue:106:20
192
192
./in.cue:106:27
193
193
./in.cue:110:17
194
- bare.embed.t1.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
195
- ./in.cue:117:7
196
- ./in.cue:117:6
197
- ./in.cue:117:14
198
- bare.embed.t1.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
199
- ./in.cue:117:7
200
- ./in.cue:117:14
201
- ./in.cue:118:6
202
- bare.embed.t2.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
203
- ./in.cue:122:7
204
- ./in.cue:122:6
205
- ./in.cue:122:14
206
- bare.embed.t2.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
207
- ./in.cue:122:7
208
- ./in.cue:121:6
209
- ./in.cue:122:14
210
194
211
195
Result:
212
196
(_|_){
@@ -375,39 +359,27 @@ Result:
375
359
}
376
360
multiple1OK1: (int){ 15 }
377
361
}
378
- bare: (_|_){
379
- // [eval]
380
- embed: (_|_){
381
- // [eval]
382
- t1: (_|_){
383
- // [eval]
384
- a: (_|_){
385
- // [eval] bare.embed.t1.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
386
- // ./in.cue:117:7
387
- // ./in.cue:117:6
388
- // ./in.cue:117:14
389
- }
390
- b: (_|_){
391
- // [eval] bare.embed.t1.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
392
- // ./in.cue:117:7
393
- // ./in.cue:117:14
394
- // ./in.cue:118:6
395
- }
362
+ bare: (struct){
363
+ embed: (struct){
364
+ t1: (struct){
365
+ a: (_){ matchN(1, (#list){
366
+ 0: (_|_){// >10
367
+ }
368
+ }) }
369
+ b: (_){ matchN(1, (#list){
370
+ 0: (_|_){// >10
371
+ }
372
+ }) }
396
373
}
397
- t2: (_|_){
398
- // [eval]
399
- b: (_|_){
400
- // [eval] bare.embed.t2.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
401
- // ./in.cue:122:7
402
- // ./in.cue:121:6
403
- // ./in.cue:122:14
404
- }
405
- a: (_|_){
406
- // [eval] bare.embed.t2.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
407
- // ./in.cue:122:7
408
- // ./in.cue:122:6
409
- // ./in.cue:122:14
410
- }
374
+ t2: (struct){
375
+ b: (_){ matchN(1, (#list){
376
+ 0: (_|_){// >10
377
+ }
378
+ }) }
379
+ a: (_){ matchN(1, (#list){
380
+ 0: (_|_){// >10
381
+ }
382
+ }) }
411
383
}
412
384
}
413
385
direct: (struct){
@@ -478,18 +450,6 @@ allOf.multiple1Err3: invalid value 5 (does not satisfy matchN(2, [math.MultipleO
478
450
./in.cue:106:20
479
451
./in.cue:106:27
480
452
./in.cue:110:17
481
- bare.embed.t1.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
482
- ./in.cue:117:7
483
- ./in.cue:117:14
484
- bare.embed.t1.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
485
- ./in.cue:117:7
486
- ./in.cue:117:14
487
- bare.embed.t2.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
488
- ./in.cue:122:7
489
- ./in.cue:122:14
490
- bare.embed.t2.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
491
- ./in.cue:122:7
492
- ./in.cue:122:14
493
453
494
454
Result:
495
455
(_|_){
@@ -651,35 +611,23 @@ Result:
651
611
}
652
612
multiple1OK1: (int){ 15 }
653
613
}
654
- bare: (_|_){
655
- // [eval]
656
- embed: (_|_){
657
- // [eval]
658
- t1: (_|_){
659
- // [eval]
660
- a: (_|_){
661
- // [eval] bare.embed.t1.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
662
- // ./in.cue:117:7
663
- // ./in.cue:117:14
664
- }
665
- b: (_|_){
666
- // [eval] bare.embed.t1.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
667
- // ./in.cue:117:7
668
- // ./in.cue:117:14
669
- }
614
+ bare: (struct){
615
+ embed: (struct){
616
+ t1: (struct){
617
+ a: (_){ matchN(1, (#list){
618
+ 0: (number){ >10 }
619
+ }) }
620
+ b: (_){ matchN(1, (#list){
621
+ 0: (number){ >10 }
622
+ }) }
670
623
}
671
- t2: (_|_){
672
- // [eval]
673
- b: (_|_){
674
- // [eval] bare.embed.t2.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
675
- // ./in.cue:122:7
676
- // ./in.cue:122:14
677
- }
678
- a: (_|_){
679
- // [eval] bare.embed.t2.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
680
- // ./in.cue:122:7
681
- // ./in.cue:122:14
682
- }
624
+ t2: (struct){
625
+ b: (_){ matchN(1, (#list){
626
+ 0: (number){ >10 }
627
+ }) }
628
+ a: (_){ matchN(1, (#list){
629
+ 0: (number){ >10 }
630
+ }) }
683
631
}
684
632
}
685
633
direct: (struct){
@@ -735,43 +683,23 @@ diff old new
735
683
oneOf.multiple1Err1: invalid value 1 (does not satisfy matchN(1, [math.MultipleOf(3),math.MultipleOf(5)])): 0 matched, expected 1:
736
684
./in.cue:84:20
737
685
./in.cue:84:27
738
- @@ -49,19 +43,15 @@
739
- ./in.cue:110:17
740
- bare.embed.t1.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
741
- ./in.cue:117:7
742
- - ./in.cue:117:6
743
- ./in.cue:117:14
744
- bare.embed.t1.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
745
- ./in.cue:117:7
746
- ./in.cue:117:14
747
- - ./in.cue:118:6
748
- bare.embed.t2.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
749
- ./in.cue:122:7
750
- - ./in.cue:122:6
751
- ./in.cue:122:14
752
- bare.embed.t2.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
753
- ./in.cue:122:7
754
- - ./in.cue:121:6
755
- ./in.cue:122:14
756
-
757
- Result:
758
- @@ -79,7 +69,6 @@
686
+ @@ -63,7 +57,6 @@
759
687
// [eval] match.singleErr: invalid value {a:"foo"} (does not satisfy matchN(1, [{a:int}])): 0 matched, expected 1:
760
688
// ./in.cue:8:17
761
689
// ./in.cue:8:24
762
690
- // ./in.cue:10:13
763
691
a: (string){ "foo" }
764
692
}
765
693
incompleteOK: (struct){
766
- @@ -89 ,7 +78 ,6 @@
694
+ @@ -73 ,7 +66 ,6 @@
767
695
// [eval] match.incompleteErr: invalid value {a:string} (does not satisfy matchN(1, [{a:int}])): 0 matched, expected 1:
768
696
// ./in.cue:12:21
769
697
// ./in.cue:12:28
770
698
- // ./in.cue:14:17
771
699
a: (string){ string }
772
700
}
773
701
#A: (#struct){
774
- @@ -102 ,8 +90 ,7 @@
702
+ @@ -86 ,8 +78 ,7 @@
775
703
0: (int){ 2 }
776
704
}), int) }) }
777
705
pickTopOK2: (int){ &(matchN(1, (#list){
@@ -781,31 +709,31 @@ diff old new
781
709
}), int) }
782
710
pickTopErr: (int){ &(matchN(1, (#list){
783
711
0: (int){ 2 }
784
- @@ -118 ,7 +105 ,6 @@
712
+ @@ -102 ,7 +93 ,6 @@
785
713
// [eval] match.defaults.pickNested1Err: invalid value {a:*3 | int} (does not satisfy matchN(1, [{a:2}])): 0 matched, expected 1:
786
714
// ./in.cue:36:23
787
715
// ./in.cue:36:30
788
716
- // ./in.cue:39:19
789
717
a: (int){ |(*(int){ 3 }, (int){ int }) }
790
718
}
791
719
pickNested2OK1: (struct){
792
- @@ -131 ,7 +117 ,6 @@
720
+ @@ -115 ,7 +105 ,6 @@
793
721
// [eval] match.defaults.pickNested2Err: invalid value {a:*3 | int} (does not satisfy matchN(1, [{a:<=2}])): 0 matched, expected 1:
794
722
// ./in.cue:41:23
795
723
// ./in.cue:41:30
796
724
- // ./in.cue:44:19
797
725
a: (int){ |(*(int){ 3 }, (int){ int }) }
798
726
}
799
727
}
800
- @@ -166 ,7 +151 ,6 @@
728
+ @@ -150 ,7 +139 ,6 @@
801
729
// [eval] not.singleErr: invalid value {a:2} (does not satisfy matchN(0, [{a:int}])): 1 matched, expected 0:
802
730
// ./in.cue:74:17
803
731
// ./in.cue:74:24
804
732
- // ./in.cue:76:13
805
733
a: (int){ 2 }
806
734
}
807
735
doubleOK: (struct){
808
- @@ -173 ,10 +157 ,9 @@
736
+ @@ -157 ,10 +145 ,9 @@
809
737
a: (int){ 2 }
810
738
}
811
739
doubleErr: (_|_){
@@ -817,38 +745,8 @@ diff old new
817
745
a: (string){ "foo" }
818
746
}
819
747
}
820
- @@ -240,7 +223,6 @@
821
- a: (_|_){
822
- // [eval] bare.embed.t1.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
823
- // ./in.cue:117:7
824
- - // ./in.cue:117:6
825
- // ./in.cue:117:14
826
- }
827
- b: (_|_){
828
- @@ -247,7 +229,6 @@
829
- // [eval] bare.embed.t1.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
830
- // ./in.cue:117:7
831
- // ./in.cue:117:14
832
- - // ./in.cue:118:6
833
- }
834
- }
835
- t2: (_|_){
836
- @@ -255,13 +236,11 @@
837
- b: (_|_){
838
- // [eval] bare.embed.t2.b: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
839
- // ./in.cue:122:7
840
- - // ./in.cue:121:6
841
- // ./in.cue:122:14
842
- }
843
- a: (_|_){
844
- // [eval] bare.embed.t2.a: invalid value {} (does not satisfy matchN(1, [>10])): 0 matched, expected 1:
845
- // ./in.cue:122:7
846
- - // ./in.cue:122:6
847
- // ./in.cue:122:14
848
- }
849
- }
850
- @@ -269,22 +248,18 @@
851
- direct: (struct){
748
+ @@ -219,22 +206,18 @@
749
+ embed: (struct){
852
750
t1: (struct){
853
751
a: (_){ matchN(1, (#list){
854
752
- 0: (_|_){// >10
@@ -857,14 +755,45 @@ diff old new
857
755
- b: (_){ matchN(1, (#list){
858
756
- 0: (_|_){// >10
859
757
- }
758
+ - }) }
759
+ - }
760
+ - t2: (struct){
761
+ - b: (_){ matchN(1, (#list){
762
+ - 0: (_|_){// >10
763
+ - }
764
+ - }) }
765
+ - a: (_){ matchN(1, (#list){
766
+ - 0: (_|_){// >10
767
+ - }
860
768
+ 0: (number){ >10 }
861
769
+ }) }
862
770
+ b: (_){ matchN(1, (#list){
771
+ + 0: (number){ >10 }
772
+ + }) }
773
+ + }
774
+ + t2: (struct){
775
+ + b: (_){ matchN(1, (#list){
776
+ + 0: (number){ >10 }
777
+ + }) }
778
+ + a: (_){ matchN(1, (#list){
863
779
+ 0: (number){ >10 }
864
780
}) }
865
781
}
866
- t2: (struct){
867
- b: (_){ matchN(1, (#list){
782
+ }
783
+ @@ -241,22 +224,18 @@
784
+ direct: (struct){
785
+ t1: (struct){
786
+ a: (_){ matchN(1, (#list){
787
+ - 0: (_|_){// >10
788
+ - }
789
+ - }) }
790
+ - b: (_){ matchN(1, (#list){
791
+ - 0: (_|_){// >10
792
+ - }
793
+ - }) }
794
+ - }
795
+ - t2: (struct){
796
+ - b: (_){ matchN(1, (#list){
868
797
- 0: (_|_){// >10
869
798
- }
870
799
- }) }
@@ -873,6 +802,14 @@ diff old new
873
802
- }
874
803
+ 0: (number){ >10 }
875
804
+ }) }
805
+ + b: (_){ matchN(1, (#list){
806
+ + 0: (number){ >10 }
807
+ + }) }
808
+ + }
809
+ + t2: (struct){
810
+ + b: (_){ matchN(1, (#list){
811
+ + 0: (number){ >10 }
812
+ + }) }
876
813
+ a: (_){ matchN(1, (#list){
877
814
+ 0: (number){ >10 }
878
815
}) }
0 commit comments