From 2b1a57eab91a893d6467aae5e2022468f88c00fd Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sun, 05 Apr 2026 19:25:11 +0000 Subject: [PATCH] test: add new golden files --- --- /dev/null +++ b/tests/cpp_test_suite_golden_override_ir_parser/error.flatMap_array_typecheck.jsonnet.golden @@ -0,0 +1,2 @@ +runtime error: in std.join all items should be arrays + error.flatMap_array_typecheck.jsonnet:1:12-45: function call \ No newline at end of file --- /dev/null +++ b/tests/cpp_test_suite_golden_override_ir_parser/error.flatMap_seq_typecheck.jsonnet.golden @@ -0,0 +1,5 @@ +type error: every failed from array | string: + - expected array, got object + - expected string, got object + argument evaluation + error.flatMap_seq_typecheck.jsonnet:1:12-52: function call \ No newline at end of file --- /dev/null +++ b/tests/cpp_test_suite_golden_override_ir_parser/error.flatMap_string_typecheck.jsonnet.golden @@ -0,0 +1,2 @@ +runtime error: in std.join all items should be strings + error.flatMap_string_typecheck.jsonnet:1:12-50: function call \ No newline at end of file --- /dev/null +++ b/tests/cpp_test_suite_golden_override_ir_parser/error.manifest_toml_null_value.jsonnet.golden @@ -0,0 +1,5 @@ +runtime error: tried to manifest null + table manifestification + section manifestification + section manifestification + error.manifest_toml_null_value.jsonnet:17:19-55: function call \ No newline at end of file --- /dev/null +++ b/tests/cpp_test_suite_golden_override_ir_parser/error.parse.text_block_indent_spaces.jsonnet.golden @@ -0,0 +1,2 @@ +syntax error: unterminated text block + error.parse.text_block_indent_spaces.jsonnet:17:1 \ No newline at end of file --- /dev/null +++ b/tests/cpp_test_suite_golden_override_ir_parser/error.static_error_var_not_exist.jsonnet.golden @@ -0,0 +1,2 @@ +local is not defined: tmp2 + error.static_error_var_not_exist.jsonnet:17:16-21: local access \ No newline at end of file --- /dev/null +++ b/tests/cpp_test_suite_golden_override_ir_parser/error.std_parseYaml1.jsonnet.golden @@ -0,0 +1,6 @@ +runtime error: failed to parse yaml: error: line 1 column 5: mapping values are not allowed in this context at line 1, column 5 + --> :1:5 + | +1 | a: b: + | ^ mapping values are not allowed in this context at line 1, column 5 + error.std_parseYaml1.jsonnet:1:14-24: function call \ No newline at end of file --- /dev/null +++ b/tests/go_testdata_golden_override_ir_parser/builtinManifestJsonEx_cyclic.jsonnet.golden @@ -0,0 +1,201 @@ +stack overflow, try to reduce recursion, or set --max-stack to bigger value + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + builtinManifestJsonEx_cyclic.jsonnet:1:19-33: function call \ No newline at end of file --- /dev/null +++ b/tests/go_testdata_golden_override_ir_parser/builtin_manifestTomlEx_cyclic.jsonnet.golden @@ -0,0 +1,201 @@ +stack overflow, try to reduce recursion, or set --max-stack to bigger value + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + section manifestification + builtin_manifestTomlEx_cyclic.jsonnet:1:19-38: function call \ No newline at end of file --- /dev/null +++ b/tests/go_testdata_golden_override_ir_parser/builtin_manifestYamlDoc_cyclic.jsonnet.golden @@ -0,0 +1,201 @@ +stack overflow, try to reduce recursion, or set --max-stack to bigger value + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + field manifestification + builtin_manifestYamlDoc_cyclic.jsonnet:1:20-29: function call \ No newline at end of file --- /dev/null +++ b/tests/go_testdata_golden_override_ir_parser/parseYaml.jsonnet.golden @@ -0,0 +1,55 @@ +[ + { + "aaa": { }, + "foo": "bar", + "xxx": [ + 42, + "asdf", + { } + ], + "ąę": "ćż" + }, + [ + { + "a": 1 + }, + { + "a": 2 + } + ], + [ + { + "a": 1 + }, + { + "a": 2 + } + ], + [ + { + "a": 1 + }, + { + "a": 2 + } + ], + { + "---a": 2, + "a": 1, + "a---": 3 + }, + [ + { + "a": 1 + }, + "hello world\n", + 3 + ], + [ + { + "a": 1 + }, + 2 + ], + null +] \ No newline at end of file --- /dev/null +++ b/tests/go_testdata_golden_override_ir_parser/stdlib_smoke_test.jsonnet.golden @@ -0,0 +1,279 @@ +{ + "abs": 42, + "acos": true, + "asciiLower": "blah", + "asciiUpper": "BLAH", + "asin": true, + "assertEqual": true, + "atan": true, + "base64": [ + "YmxhaA==", + "YmxhaA==" + ], + "base64Decode": "blah\n", + "base64DecodeBytes": [ + 98, + 108, + 97, + 104, + 10 + ], + "ceil": 5, + "char": "A", + "codepoint": 65, + "cos": true, + "count": 1, + "decodeUTF8": "AAA", + "encodeUTF8": [ + 98, + 108, + 97, + 104 + ], + "endsWith": true, + "escapeStringBash": "'test '\"'\"'test'\"'\"'test'", + "escapeStringDollars": "test 'test'test", + "escapeStringJson": "\"test 'test'test\"", + "escapeStringPython": "\"test 'test'test\"", + "exp": 148.4131591025766, + "exponent": 3, + "filter": [ + 2, + 4 + ], + "filterMap": [ + 4, + 8 + ], + "find": [ + 2, + 4 + ], + "findSubstr": [ + 0, + 5 + ], + "flatMap": [ + 2, + 3, + 4, + 6, + 6, + 9 + ], + "flattenArrays": [ + 1, + 2, + 3, + 4, + 5, + [ + 6, + 7 + ] + ], + "floor": 5, + "foldl": [ + 0, + 1, + 2, + 3 + ], + "foldr": [ + 1, + 2, + 3, + 4 + ], + "format": "test blah 42", + "get": [ + 17, + 42, + 18, + 42 + ], + "isArray": true, + "isBoolean": true, + "isFunction": true, + "isNumber": true, + "isObject": true, + "isString": true, + "join": "a,b,c", + "length": 0, + "lines": "a\nb\nc\n", + "log": true, + "lstripChars": "bbbbcccc", + "makeArray": [ + 0, + 1, + 2, + 3, + 4 + ], + "manifestIni": "a = 1\nb = 2\n[s1]\nx = 1\ny = 2\n", + "manifestJsonEx": "{\n \"a\": {\n \"b\": \"c\"\n }\n}", + "manifestJsonMinified": "{\"a\":{\"b\":\"c\"}}", + "manifestPython": "{\"a\": {\"b\": \"c\"}}", + "manifestPythonVars": "a = {\"b\": \"c\"}\n", + "manifestTomlEx": "[a]\n b = \"c\"", + "manifestXmlJsonml": "", + "manifestYamlDoc": "\"a\":\n \"b\": \"c\"", + "manifestYamlStream": "---\n42\n---\n\"a\":\n \"b\": \"c\"\n...\n", + "mantissa": 0.6249999999999999, + "map": [ + -1, + -2, + -3 + ], + "mapWithIndex": [ + 3, + 3, + 3 + ], + "mapWithKey": { + "a": 42 + }, + "max": 3, + "md5": "1bc29b36f623ba82aaf6724fd3b16718", + "member": true, + "mergePatch": { }, + "min": 2, + "objectFields": [ ], + "objectFieldsAll": [ ], + "objectHas": false, + "objectHasAll": false, + "objectKeysValues": [ ], + "objectKeysValuesAll": [ ], + "objectValues": [ ], + "objectValuesAll": [ ], + "parseHex": 3735928559, + "parseInt": 42, + "parseJson": { + "a": "b" + }, + "parseOctal": 83, + "pow": 8, + "prune": { + "y": [ + "42" + ] + }, + "range": [ + 1, + 2, + 3, + 4, + 5 + ], + "repeat": "foofoofoo", + "reverse": [ + "a", + "b" + ], + "rstripChars": "aaabbbb", + "set": [ + [ + 1, + 2, + 3 + ], + [ + 3, + 2, + 1 + ] + ], + "setDiff": [ + [ + 1, + 2 + ], + [ + 1, + 3 + ] + ], + "setInter": [ + [ + 3 + ], + [ + 2 + ] + ], + "setMember": [ + false, + true + ], + "setUnion": [ + [ + 1, + 2, + 3, + 4, + 5 + ], + [ + 1, + 2, + 3, + 4, + 5 + ] + ], + "sign": 1, + "sin": true, + "slice": "o", + "sort": [ + [ + 1, + 2, + 3 + ], + [ + 3, + 2, + 1 + ] + ], + "split": [ + "a", + "b", + "c" + ], + "splitLimit": [ + "a", + "b,c" + ], + "splitLimitR": [ + "a,b", + "c" + ], + "sqrt": true, + "startsWith": true, + "strReplace": "bba", + "stringChars": [ + "b", + "l", + "a", + "h" + ], + "stripChars": "bbbb", + "substr": "s", + "tan": true, + "thisFile": "stdlib_smoke_test.jsonnet", + "toString": "42", + "type": "object", + "uniq": [ + [ + 1, + 2, + 3 + ], + [ + "a", + "B", + "a" + ] + ] +} \ No newline at end of file -- gitstuff