update 1.0.8.0
Commits for version update
This commit is contained in:
27
vendor/mtdowling/jmespath.php/tests/compliance/perf/basic.json
vendored
Normal file
27
vendor/mtdowling/jmespath.php/tests/compliance/perf/basic.json
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
[{
|
||||
"description": "Basic minimal case",
|
||||
"given":
|
||||
{"foo": {"bar": {"baz": "correct"}}},
|
||||
"cases": [
|
||||
{
|
||||
"name": "single_expression",
|
||||
"expression": "foo",
|
||||
"result": {"bar": {"baz": "correct"}}
|
||||
},
|
||||
{
|
||||
"name": "single_dot_expression",
|
||||
"expression": "foo.bar",
|
||||
"result": {"baz": "correct"}
|
||||
},
|
||||
{
|
||||
"name": "double_dot_expression",
|
||||
"expression": "foo.bar.baz",
|
||||
"result": "correct"
|
||||
},
|
||||
{
|
||||
"name": "dot_no_match",
|
||||
"expression": "foo.bar.baz.bad",
|
||||
"result": null
|
||||
}
|
||||
]
|
||||
}]
|
||||
27
vendor/mtdowling/jmespath.php/tests/compliance/perf/deep_hierarchy.json
vendored
Normal file
27
vendor/mtdowling/jmespath.php/tests/compliance/perf/deep_hierarchy.json
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
[{
|
||||
"description": "Deeply nested dict",
|
||||
"given":
|
||||
{"j49": {"j48": {"j47": {"j46": {"j45": {"j44": {"j43": {"j42": {"j41": {"j40": {"j39": {"j38": {"j37": {"j36": {"j35": {"j34": {"j33": {"j32": {"j31": {"j30": {"j29": {"j28": {"j27": {"j26": {"j25": {"j24": {"j23": {"j22": {"j21": {"j20": {"j19": {"j18": {"j17": {"j16": {"j15": {"j14": {"j13": {"j12": {"j11": {"j10": {"j9": {"j8": {"j7": {"j6": {"j5": {"j4": {"j3": {"j2": {"j1": {"j0": {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},
|
||||
"cases": [
|
||||
{
|
||||
"name": "deep_nesting_10",
|
||||
"expression": "j49.j48.j47.j46.j45.j44.j43.j42.j41.j40",
|
||||
"result": {"j39": {"j38": {"j37": {"j36": {"j35": {"j34": {"j33": {"j32": {"j31": {"j30": {"j29": {"j28": {"j27": {"j26": {"j25": {"j24": {"j23": {"j22": {"j21": {"j20": {"j19": {"j18": {"j17": {"j16": {"j15": {"j14": {"j13": {"j12": {"j11": {"j10": {"j9": {"j8": {"j7": {"j6": {"j5": {"j4": {"j3": {"j2": {"j1": {"j0": {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
|
||||
},
|
||||
{
|
||||
"name": "deep_nesting_50",
|
||||
"expression": "j49.j48.j47.j46.j45.j44.j43.j42.j41.j40.j39.j38.j37.j36.j35.j34.j33.j32.j31.j30.j29.j28.j27.j26.j25.j24.j23.j22.j21.j20.j19.j18.j17.j16.j15.j14.j13.j12.j11.j10.j9.j8.j7.j6.j5.j4.j3.j2.j1.j0",
|
||||
"result": {}
|
||||
},
|
||||
{
|
||||
"name": "deep_nesting_50_pipe",
|
||||
"expression": "j49|j48|j47|j46|j45|j44|j43|j42|j41|j40|j39|j38|j37|j36|j35|j34|j33|j32|j31|j30|j29|j28|j27|j26|j25|j24|j23|j22|j21|j20|j19|j18|j17|j16|j15|j14|j13|j12|j11|j10|j9|j8|j7|j6|j5|j4|j3|j2|j1|j0",
|
||||
"result": {}
|
||||
},
|
||||
{
|
||||
"name": "deep_nesting_50_index",
|
||||
"expression": "[49][48][47][46][45][44][43][42][41][40][39][38][37][36][35][34][33][32][31][30][29][28][27][26][25][24][23][22][21][20][19][18][17][16][15][14][13][12][11][10][9][8][7][6][5][4][3][2][1][0]",
|
||||
"result": null
|
||||
}
|
||||
]
|
||||
}]
|
||||
12
vendor/mtdowling/jmespath.php/tests/compliance/perf/deep_projection.json
vendored
Normal file
12
vendor/mtdowling/jmespath.php/tests/compliance/perf/deep_projection.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
[{
|
||||
"description": "Deep projections",
|
||||
"given":
|
||||
{"a": []},
|
||||
"cases": [
|
||||
{
|
||||
"name": "deep_projection_104",
|
||||
"expression": "a[*].b[*].c[*].d[*].e[*].f[*].g[*].h[*].i[*].j[*].k[*].l[*].m[*].n[*].o[*].p[*].q[*].r[*].s[*].t[*].u[*].v[*].w[*].x[*].y[*].z[*].a[*].b[*].c[*].d[*].e[*].f[*].g[*].h[*].i[*].j[*].k[*].l[*].m[*].n[*].o[*].p[*].q[*].r[*].s[*].t[*].u[*].v[*].w[*].x[*].y[*].z[*].a[*].b[*].c[*].d[*].e[*].f[*].g[*].h[*].i[*].j[*].k[*].l[*].m[*].n[*].o[*].p[*].q[*].r[*].s[*].t[*].u[*].v[*].w[*].x[*].y[*].z[*].a[*].b[*].c[*].d[*].e[*].f[*].g[*].h[*].i[*].j[*].k[*].l[*].m[*].n[*].o[*].p[*].q[*].r[*].s[*].t[*].u[*].v[*].w[*].x[*].y[*].z[*]",
|
||||
"result": []
|
||||
}
|
||||
]
|
||||
}]
|
||||
17
vendor/mtdowling/jmespath.php/tests/compliance/perf/functions.json
vendored
Normal file
17
vendor/mtdowling/jmespath.php/tests/compliance/perf/functions.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
[{
|
||||
"description": "Deep projections",
|
||||
"given":
|
||||
[749, 222, 102, 148, 869, 848, 326, 644, 402, 150, 361, 827, 741, 60, 842, 943, 214, 519, 134, 866, 621, 851, 59, 580, 760, 576, 951, 989, 266, 259, 809, 643, 292, 731, 129, 970, 589, 430, 690, 715, 901, 491, 276, 88, 738, 282, 547, 349, 236, 879, 403, 557, 554, 23, 649, 720, 531, 2, 601, 152, 530, 477, 568, 122, 811, 75, 181, 203, 683, 152, 794, 155, 54, 314, 957, 468, 740, 532, 504, 806, 927, 827, 840, 100, 519, 357, 536, 398, 417, 543, 599, 383, 144, 772, 988, 184, 118, 921, 497, 193, 320, 919, 583, 346, 575, 143, 866, 907, 570, 255, 539, 164, 764, 256, 315, 305, 960, 587, 804, 577, 667, 869, 563, 956, 677, 469, 934, 52, 323, 933, 398, 305, 138, 133, 443, 419, 717, 838, 287, 177, 192, 210, 892, 319, 470, 76, 643, 737, 135, 425, 586, 882, 844, 113, 268, 323, 938, 569, 374, 295, 648, 27, 703, 530, 667, 118, 176, 972, 611, 60, 47, 19, 500, 344, 332, 452, 647, 388, 188, 235, 151, 353, 219, 766, 626, 885, 456, 182, 363, 617, 236, 285, 152, 87, 666, 429, 599, 762, 13, 778, 634, 43, 199, 361, 300, 370, 957, 488, 359, 354, 972, 368, 482, 88, 766, 709, 804, 637, 368, 950, 752, 932, 638, 291, 177, 739, 740, 357, 928, 964, 621, 472, 813, 36, 271, 642, 3, 771, 397, 670, 324, 244, 827, 194, 693, 846, 351, 668, 911, 600, 682, 735, 26, 876, 581, 915, 184, 263, 857, 960, 5, 523, 932, 694, 457, 739, 897, 28, 794, 885, 77, 768, 39, 763, 748, 792, 60, 582, 667, 909, 820, 898, 569, 252, 583, 237, 677, 613, 914, 956, 541, 297, 853, 581, 118, 888, 368, 156, 582, 183],
|
||||
"cases": [
|
||||
{
|
||||
"name": "min sort with slice",
|
||||
"expression": "sort(@)[:3]",
|
||||
"result": [2, 3, 5]
|
||||
},
|
||||
{
|
||||
"name": "max sort with slice",
|
||||
"expression": "sort(@)[-3:]",
|
||||
"result": [972, 988, 989]
|
||||
}
|
||||
]
|
||||
}]
|
||||
22
vendor/mtdowling/jmespath.php/tests/compliance/perf/multiwildcard.json
vendored
Normal file
22
vendor/mtdowling/jmespath.php/tests/compliance/perf/multiwildcard.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
[{
|
||||
"description": "Multiple wildcards in an expression",
|
||||
"given": {
|
||||
"foo": [
|
||||
{"bar": [{"kind": "basic"}, {"kind": "intermediate"}]},
|
||||
{"bar": [{"kind": "advanced"}, {"kind": "expert"}]}
|
||||
]
|
||||
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"name": "multi_wildcard_field",
|
||||
"expression": "foo[*].bar[*].kind",
|
||||
"result": [["basic", "intermediate"], ["advanced", "expert"]]
|
||||
},
|
||||
{
|
||||
"name": "wildcard_with_index",
|
||||
"expression": "foo[*].bar[0].kind",
|
||||
"result": ["basic", "advanced"]
|
||||
}
|
||||
]
|
||||
}]
|
||||
17
vendor/mtdowling/jmespath.php/tests/compliance/perf/wildcardindex.json
vendored
Normal file
17
vendor/mtdowling/jmespath.php/tests/compliance/perf/wildcardindex.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
[{
|
||||
"description": "Multiple wildcards",
|
||||
"given":
|
||||
{"foo": [{"bar": "one"}, {"bar": "two"}, {"bar": "three"}, {"notbar": "four"}]},
|
||||
"cases": [
|
||||
{
|
||||
"name": "wildcard_with_field_match",
|
||||
"expression": "foo[*].bar",
|
||||
"result": ["one", "two", "three"]
|
||||
},
|
||||
{
|
||||
"name": "wildcard_with_field_match2",
|
||||
"expression": "foo[*].notbar",
|
||||
"result": ["four"]
|
||||
}
|
||||
]
|
||||
}]
|
||||
Reference in New Issue
Block a user