git.delta.rocks / jrsonnet / refs/commits / 6fbe7c61b4ca

difftreelog

test run upstream testsuites in ci

zvxoyvumYaroslav Bolyukin2026-05-06parent: #4874d05.patch.diff
in: master

238 files changed

modifiedCargo.lockdiffbeforeafterboth
212source = "registry+https://github.com/rust-lang/crates.io-index"212source = "registry+https://github.com/rust-lang/crates.io-index"
213checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"213checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
214
215[[package]]
216name = "cfg_aliases"
217version = "0.2.1"
218source = "registry+https://github.com/rust-lang/crates.io-index"
219checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
214220
215[[package]]221[[package]]
216name = "ciborium"222name = "ciborium"
263269
264[[package]]270[[package]]
265name = "clap_complete"271name = "clap_complete"
266version = "4.6.2"272version = "4.6.3"
267source = "registry+https://github.com/rust-lang/crates.io-index"273source = "registry+https://github.com/rust-lang/crates.io-index"
268checksum = "3ff7a1dccbdd8b078c2bdebff47e404615151534d5043da397ec50286816f9cb"274checksum = "660c0520455b1013b9bcb0393d5f643d7e4454fb69c915b8d6d2aa0e9a45acc3"
269dependencies = [275dependencies = [
270 "clap",276 "clap",
271]277]
413419
414[[package]]420[[package]]
415name = "digest"421name = "digest"
416version = "0.11.2"422version = "0.11.3"
417source = "registry+https://github.com/rust-lang/crates.io-index"423source = "registry+https://github.com/rust-lang/crates.io-index"
418checksum = "4850db49bf08e663084f7fb5c87d202ef91a3907271aff24a94eb97ff039153c"424checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
419dependencies = [425dependencies = [
420 "block-buffer",426 "block-buffer",
421 "const-oid",427 "const-oid",
622 "regex-syntax",628 "regex-syntax",
623]629]
630
631[[package]]
632name = "granit-parser"
633version = "0.0.2"
634source = "registry+https://github.com/rust-lang/crates.io-index"
635checksum = "b7e736dfe3881c53a7dce0685eb18202d0d9fe6911782f9870946eb9ee89d778"
636dependencies = [
637 "arraydeque",
638 "smallvec",
639]
624640
625[[package]]641[[package]]
626name = "half"642name = "half"
9841000
985[[package]]1001[[package]]
986name = "jrsonnet-gcmodule"1002name = "jrsonnet-gcmodule"
987version = "0.4.6"1003version = "0.5.0"
988source = "registry+https://github.com/rust-lang/crates.io-index"1004source = "registry+https://github.com/rust-lang/crates.io-index"
989checksum = "bb04c12f50f954e1d8b3b5a7e99c448da97af2e1f7435a88f3c9b9f2a677015a"1005checksum = "f65a6fdef5568ea2e3459dcad15979d7613f968cbacf722e1138ffe83d28ee24"
990dependencies = [1006dependencies = [
991 "jrsonnet-gcmodule-derive",1007 "jrsonnet-gcmodule-derive",
992]1008]
9931009
994[[package]]1010[[package]]
995name = "jrsonnet-gcmodule-derive"1011name = "jrsonnet-gcmodule-derive"
996version = "0.4.6"1012version = "0.5.0"
997source = "registry+https://github.com/rust-lang/crates.io-index"1013source = "registry+https://github.com/rust-lang/crates.io-index"
998checksum = "454a895e7c0b7ea3584966e8b346c6c80fdd33acb0224ad7e3fbd80cf8171601"1014checksum = "829a23aa96f1afb78bbc9722e323ced7a0b75d9b89cec6bfbc709cf484e8a0a4"
999dependencies = [1015dependencies = [
1000 "proc-macro2",1016 "proc-macro2",
1001 "quote",1017 "quote",
12201236
1221[[package]]1237[[package]]
1222name = "lru"1238name = "lru"
1223version = "0.17.0"1239version = "0.18.0"
1224source = "registry+https://github.com/rust-lang/crates.io-index"1240source = "registry+https://github.com/rust-lang/crates.io-index"
1225checksum = "0e0b564323a0fb6d54b864f625ae139de9612e27edb944dda37c109f05aac531"1241checksum = "8a860605968fce16869fd239cf4237a82f3ac470723415db603b0e8b6c8d4fb9"
1226dependencies = [1242dependencies = [
1227 "hashbrown 0.17.0",1243 "hashbrown 0.17.0",
1228]1244]
1258 "mimalloc-sys",1274 "mimalloc-sys",
1259]1275]
1276
1277[[package]]
1278name = "nix"
1279version = "0.31.2"
1280source = "registry+https://github.com/rust-lang/crates.io-index"
1281checksum = "5d6d0705320c1e6ba1d912b5e37cf18071b6c2e9b7fa8215a1e8a7651966f5d3"
1282dependencies = [
1283 "bitflags",
1284 "cfg-if",
1285 "cfg_aliases",
1286 "libc",
1287]
12601288
1261[[package]]1289[[package]]
1262name = "num-bigint"1290name = "num-bigint"
13561384
1357[[package]]1385[[package]]
1358name = "peg"1386name = "peg"
1359version = "0.8.5"1387version = "0.8.6"
1360source = "registry+https://github.com/rust-lang/crates.io-index"1388source = "registry+https://github.com/rust-lang/crates.io-index"
1361checksum = "9928cfca101b36ec5163e70049ee5368a8a1c3c6efc9ca9c5f9cc2f816152477"1389checksum = "0aad070be5b63aa72103f2fcdd70a83adbd5e90112ce5b574171ff1c65501773"
1362dependencies = [1390dependencies = [
1363 "peg-macros",1391 "peg-macros",
1364 "peg-runtime",1392 "peg-runtime",
1365]1393]
13661394
1367[[package]]1395[[package]]
1368name = "peg-macros"1396name = "peg-macros"
1369version = "0.8.5"1397version = "0.8.6"
1370source = "registry+https://github.com/rust-lang/crates.io-index"1398source = "registry+https://github.com/rust-lang/crates.io-index"
1371checksum = "6298ab04c202fa5b5d52ba03269fb7b74550b150323038878fe6c372d8280f71"1399checksum = "ddd8ef6825cae95355031ae26a99b616a2a21f22ba2de0197c43dfb05acbe7ee"
1372dependencies = [1400dependencies = [
1373 "peg-runtime",1401 "peg-runtime",
1374 "proc-macro2",1402 "proc-macro2",
13771405
1378[[package]]1406[[package]]
1379name = "peg-runtime"1407name = "peg-runtime"
1380version = "0.8.5"1408version = "0.8.6"
1381source = "registry+https://github.com/rust-lang/crates.io-index"1409source = "registry+https://github.com/rust-lang/crates.io-index"
1382checksum = "132dca9b868d927b35b5dd728167b2dee150eb1ad686008fc71ccb298b776fca"1410checksum = "7011d97b484a5ebdc4b1fdb3b12d5e4bbbea56e9d22b688f2e79e04b65a7d8a6"
13831411
1384[[package]]1412[[package]]
1385name = "percent-encoding"1413name = "percent-encoding"
1644 "winapi-util",1672 "winapi-util",
1645]1673]
1646
1647[[package]]
1648name = "saphyr-parser-bw"
1649version = "0.0.611"
1650source = "registry+https://github.com/rust-lang/crates.io-index"
1651checksum = "67dec0c833db75dc98957956b303fe447ffc5eb13f2325ef4c2350f7f3aa69e3"
1652dependencies = [
1653 "arraydeque",
1654 "smallvec",
1655 "thiserror",
1656]
16571674
1658[[package]]1675[[package]]
1659name = "semver"1676name = "semver"
16731690
1674[[package]]1691[[package]]
1675name = "serde-saphyr"1692name = "serde-saphyr"
1676version = "0.0.25"1693version = "0.0.26"
1677source = "registry+https://github.com/rust-lang/crates.io-index"1694source = "registry+https://github.com/rust-lang/crates.io-index"
1678checksum = "75e214449d107a81daf1453eb46c9314457660509534883e82db6faca2034a8a"1695checksum = "dcc7fe48e34d02a97bc8e6253b8b91e5a47fe2c47eaacb5149cefbb69922eaf0"
1679dependencies = [1696dependencies = [
1680 "ahash",1697 "ahash",
1681 "annotate-snippets",1698 "annotate-snippets",
1682 "base64",1699 "base64",
1683 "encoding_rs_io",1700 "encoding_rs_io",
1684 "getrandom 0.3.4",1701 "getrandom 0.3.4",
1702 "granit-parser",
1685 "num-traits",1703 "num-traits",
1686 "saphyr-parser-bw",
1687 "serde",1704 "serde",
1688 "smallvec",1705 "smallvec",
1689]1706]
2297 "clap",2314 "clap",
2298 "indexmap",2315 "indexmap",
2299 "itertools 0.14.0",2316 "itertools 0.14.0",
2317 "nix",
2300 "proc-macro2",2318 "proc-macro2",
2301 "quote",2319 "quote",
2302 "ungrammar",2320 "ungrammar",
modifiedCargo.tomldiffbeforeafterboth
30jrsonnet-types = { path = "./crates/jrsonnet-types", version = "0.5.0-pre98" }30jrsonnet-types = { path = "./crates/jrsonnet-types", version = "0.5.0-pre98" }
31jrsonnet-formatter = { path = "./crates/jrsonnet-formatter", version = "0.5.0-pre98" }31jrsonnet-formatter = { path = "./crates/jrsonnet-formatter", version = "0.5.0-pre98" }
32jrsonnet-lexer = { path = "./crates/jrsonnet-lexer", version = "0.5.0-pre98" }32jrsonnet-lexer = { path = "./crates/jrsonnet-lexer", version = "0.5.0-pre98" }
33jrsonnet-gcmodule = { version = "0.4.6" }33jrsonnet-gcmodule = { version = "0.5.0" }
34# Diagnostics.34# Diagnostics.
35# hi-doc is my library, which handles text formatting very well, but isn't polished enough yet35# hi-doc is my library, which handles text formatting very well, but isn't polished enough yet
36# Previous implementation was based on annotate-snippets, which I don't like for many reasons.36# Previous implementation was based on annotate-snippets, which I don't like for many reasons.
47# Parsing, manifestification is implemented manually everywhere47# Parsing, manifestification is implemented manually everywhere
48serde = "1.0.228"48serde = "1.0.228"
49serde_json = "1.0.149"49serde_json = "1.0.149"
50serde-saphyr = { version = "0.0.25", default-features = false, features = [50serde-saphyr = { version = "0.0.26", default-features = false, features = [
51 "deserialize",51 "deserialize",
52] }52] }
5353
99xshell = "0.2.7"99xshell = "0.2.7"
100100
101regex = "1.12"101regex = "1.12"
102lru = "0.17.0"102lru = "0.18.0"
103103
104syn-dissect-closure = "0.1.0"104syn-dissect-closure = "0.1.0"
105105
106# Tests/benchmarks106# Tests/benchmarks
107insta = { version = "1.46", features = ["glob"] }107insta = { version = "1.46", features = ["glob"] }
108criterion = { version = "0.8" }108criterion = { version = "0.8" }
109strip-ansi-escapes = "0.2.1"109strip-ansi-escapes = "0.2.1"
110nix = { version = "0.31", features = ["process"] }
110111
111# Web112# Web
112wasm-bindgen = "=0.2.106"113wasm-bindgen = "=0.2.106"
modifiedcrates/jrsonnet-cli/src/stdlib.rsdiffbeforeafterboth
21///21///
22/// let ext = ExtStr::from_str("name=value").unwrap();22/// let ext = ExtStr::from_str("name=value").unwrap();
23/// assert_eq!(ext.name, "name");23/// assert_eq!(ext.name, "name");
24/// assert_eq!(ext.value, "value");
25///
26/// std::env::set_var("name", "value");
27///
28/// let ext = ExtStr::from_str("name").unwrap();
29/// assert_eq!(ext.name, "name");
30/// assert_eq!(ext.value, "value");24/// assert_eq!(ext.value, "value");
31///25///
32/// let ext = ExtStr::from_str("name=value=with=equals").unwrap();26/// let ext = ExtStr::from_str("name=value=with=equals").unwrap();
modifiedcrates/jrsonnet-evaluator/src/lib.rsdiffbeforeafterboth
1//! jsonnet interpreter implementation1//! jsonnet interpreter implementation
2#![cfg_attr(nightly, feature(thread_local, type_alias_impl_trait))]2#![cfg_attr(nightly, feature(thread_local))]
33
4// For jrsonnet-macros4// For jrsonnet-macros
5extern crate self as jrsonnet_evaluator;5extern crate self as jrsonnet_evaluator;
modifiedcrates/jrsonnet-evaluator/src/trace/mod.rsdiffbeforeafterboth
2use std::cell::RefCell;2use std::cell::RefCell;
3use std::{3use std::{
4 any::Any,4 any::Any,
5 fmt,
5 path::{Component, Path, PathBuf},6 path::{Component, Path, PathBuf},
6};7};
78
10#[cfg(feature = "explaining-traces")]11#[cfg(feature = "explaining-traces")]
11use jrsonnet_ir::Span;12use jrsonnet_ir::Span;
1213
13use crate::{Error, error::ErrorKind};14use crate::{Error, ResolvePathOwned, error::ErrorKind};
1415
15/// The way paths should be displayed16/// The way paths should be displayed
16#[derive(Clone, Trace)]17#[derive(Clone, Trace)]
63pub trait TraceFormat: Trace {64pub trait TraceFormat: Trace {
64 fn write_trace(65 fn write_trace(&self, out: &mut dyn fmt::Write, error: &Error) -> Result<(), fmt::Error>;
65 &self,
66 out: &mut dyn std::fmt::Write,
67 error: &Error,
68 ) -> Result<(), std::fmt::Error>;
69 fn format(&self, error: &Error) -> Result<String, std::fmt::Error> {66 fn format(&self, error: &Error) -> Result<String, fmt::Error> {
70 let mut out = String::new();67 let mut out = String::new();
71 self.write_trace(&mut out, error)?;68 self.write_trace(&mut out, error)?;
72 Ok(out)69 Ok(out)
76}73}
7774
78fn print_code_location(75fn print_code_location(
79 out: &mut impl std::fmt::Write,76 out: &mut impl fmt::Write,
80 start: &CodeLocation,77 start: &CodeLocation,
81 end: &CodeLocation,78 end: &CodeLocation,
82) -> Result<(), std::fmt::Error> {79) -> Result<(), fmt::Error> {
83 if start.line == end.line {80 if start.line == end.line {
84 if start.column == end.column {81 if start.column == end.column {
85 write!(out, "{}:{}", start.line, start.column)?;82 write!(out, "{}:{}", start.line, start.column)?;
124121
125impl TraceFormat for CompactFormat {122impl TraceFormat for CompactFormat {
126 fn write_trace(123 fn write_trace(&self, out: &mut dyn fmt::Write, error: &Error) -> Result<(), fmt::Error> {
127 &self,124 if let ErrorKind::ImportFileNotFound(from, import) = error.error() {
128 out: &mut dyn std::fmt::Write,125 let from = from
129 error: &Error,126 .path()
130 ) -> Result<(), std::fmt::Error> {127 .map_or_else(|| from.to_string(), |path| self.resolver.resolve(path));
128 let import = match import {
129 ResolvePathOwned::Str(s) => s.clone(),
130 ResolvePathOwned::Path(path_buf) => self.resolver.resolve(path_buf),
131 };
132 write!(out, "import file not found {import} from {from}")?;
133 } else {
131 write!(out, "{}", error.error())?;134 write!(out, "{}", error.error())?;
135 }
136
132 if let ErrorKind::ImportSyntaxError { path, error } = error.error() {137 if let ErrorKind::ImportSyntaxError { path, error } = error.error() {
133 use std::fmt::Write;138 use std::fmt::Write;
214impl TraceFormat for JsFormat {219impl TraceFormat for JsFormat {
215 fn write_trace(220 fn write_trace(&self, out: &mut dyn fmt::Write, error: &Error) -> Result<(), fmt::Error> {
216 &self,
217 out: &mut dyn std::fmt::Write,
218 error: &Error,
219 ) -> Result<(), std::fmt::Error> {
220 write!(out, "{}", error.error())?;221 write!(out, "{}", error.error())?;
221 for item in &error.trace().0 {222 for item in &error.trace().0 {
222 writeln!(out)?;223 writeln!(out)?;
259impl TraceFormat for HiDocFormat {260impl TraceFormat for HiDocFormat {
260 fn write_trace(261 fn write_trace(&self, out: &mut dyn fmt::Write, error: &Error) -> Result<(), fmt::Error> {
261 &self,
262 out: &mut dyn std::fmt::Write,
263 error: &Error,
264 ) -> Result<(), std::fmt::Error> {
265 struct ResetData {262 struct ResetData {
266 loc: Span,263 loc: Span,
267 }264 }
284 let mut builder: Option<SnippetBuilder> = None;281 let mut builder: Option<SnippetBuilder> = None;
285 let mut current_src: Option<&str> = None;282 let mut current_src: Option<&str> = None;
286 let flush = |builder: Option<SnippetBuilder>,283 let flush = |builder: Option<SnippetBuilder>,
287 out: &mut dyn std::fmt::Write|284 out: &mut dyn fmt::Write|
288 -> Result<(), std::fmt::Error> {285 -> Result<(), fmt::Error> {
289 if let Some(b) = builder {286 if let Some(b) = builder {
290 let ansi = source_to_ansi(&b.build());287 let ansi = source_to_ansi(&b.build());
291 write!(out, "\n{}", ansi.trim_end())?;288 write!(out, "\n{}", ansi.trim_end())?;
modifiedcrates/jrsonnet-formatter/src/lib.rsdiffbeforeafterboth
913pub fn format(input: &str, opts: &FormatOptions) -> Result<String, SnippetBuilder> {913pub fn format(input: &str, opts: &FormatOptions) -> Result<String, SnippetBuilder> {
914 let (parsed, errors) = jrsonnet_rowan_parser::parse(input);914 let (parsed, errors) = jrsonnet_rowan_parser::parse(input);
915 if !errors.is_empty() {915 if !errors.is_empty() {
916 // Reserve one char for EOF display
917 let input = format!("{input} ");
916 let mut builder = hi_doc::SnippetBuilder::new(input);918 let mut builder = hi_doc::SnippetBuilder::new(input);
917 for error in errors {919 for error in errors {
918 builder920 builder
modifiedcrates/jrsonnet-formatter/src/snapshots/jrsonnet_formatter__tests__snapshots@comments.jsonnet.snapdiffbeforeafterboth
14 value: 42,14 value: 42,
15 },15 },
16}16}
17// Empty before
18//
19// Empty after
1720
modifiedcrates/jrsonnet-formatter/src/tests/comments.jsonnetdiffbeforeafterboth
9 value: 42,9 value: 42,
10 },10 },
11}11}
12// Empty before
13//
14// Empty after
1215
modifiedflake.lockdiffbeforeafterboth
1{1{
2 "nodes": {2 "nodes": {
3 "cpp-jsonnet-for-tests": {
4 "flake": false,
5 "locked": {
6 "lastModified": 1774879924,
7 "narHash": "sha256-yFxRp/YHaj1BtAAK5n5QcTBTl/a7m5pU5Wh65+sknT4=",
8 "owner": "google",
9 "repo": "jsonnet",
10 "rev": "2ef32abf3d5b83c24863949e8413b810d54c7f2a",
11 "type": "github"
12 },
13 "original": {
14 "owner": "google",
15 "repo": "jsonnet",
16 "type": "github"
17 }
18 },
3 "crane": {19 "crane": {
4 "locked": {20 "locked": {
5 "lastModified": 1775245625,21 "lastModified": 1777830388,
6 "owner": "CertainLach",22 "owner": "ipetkov",
7 "repo": "crane",23 "repo": "crane",
8 "rev": "9c67a3098774323d0270004eed7d7291ddcfe918",24 "rev": "d459c1350e96ce1a7e3859c513ef5e9869d67d6f",
9 "type": "github"25 "type": "github"
10 },26 },
11 "original": {27 "original": {
12 "owner": "CertainLach",28 "owner": "ipetkov",
13 "ref": "refactor/drop-remarshal",
14 "repo": "crane",29 "repo": "crane",
15 "type": "github"30 "type": "github"
16 }31 }
43 ]58 ]
44 },59 },
45 "locked": {60 "locked": {
46 "lastModified": 1775087534,61 "lastModified": 1777988971,
47 "owner": "hercules-ci",62 "owner": "hercules-ci",
48 "repo": "flake-parts",63 "repo": "flake-parts",
49 "rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",64 "rev": "0678d8986be1661af6bb555f3489f2fdfc31f6ff",
50 "type": "github"65 "type": "github"
51 },66 },
52 "original": {67 "original": {
55 "type": "github"70 "type": "github"
56 }71 }
57 },72 },
73 "go-jsonnet-for-tests": {
74 "flake": false,
75 "locked": {
76 "lastModified": 1774367753,
77 "narHash": "sha256-O7b26aobvs1gHsUNM2RZ/WnIMpFJOa/XbupttTMJ8LA=",
78 "owner": "google",
79 "repo": "go-jsonnet",
80 "rev": "567b61ac4a6c23546a62d79324bb4aaed6bdc941",
81 "type": "github"
82 },
83 "original": {
84 "owner": "google",
85 "repo": "go-jsonnet",
86 "type": "github"
87 }
88 },
58 "hercules-ci-effects": {89 "hercules-ci-effects": {
59 "inputs": {90 "inputs": {
60 "flake-parts": [91 "flake-parts": [
65 ]96 ]
66 },97 },
67 "locked": {98 "locked": {
68 "lastModified": 1773550609,99 "lastModified": 1776603440,
69 "owner": "hercules-ci",100 "owner": "hercules-ci",
70 "repo": "hercules-ci-effects",101 "repo": "hercules-ci-effects",
71 "rev": "554f6ed448ca74c00aa2371cde901ae1e73005b9",102 "rev": "e2456ee419f9d75f8382e3d6c5af4690b316a5a8",
72 "type": "github"103 "type": "github"
73 },104 },
74 "original": {105 "original": {
79 },110 },
80 "nixpkgs": {111 "nixpkgs": {
81 "locked": {112 "locked": {
82 "lastModified": 1775270577,113 "lastModified": 1778022901,
83 "owner": "nixos",114 "owner": "nixos",
84 "repo": "nixpkgs",115 "repo": "nixpkgs",
85 "rev": "9370b0614498381a0019e082c10e9cf8413e7c2c",116 "rev": "5d0f6be1c3cebacc3e817a18a44a3ac89ff66109",
86 "type": "github"117 "type": "github"
87 },118 },
88 "original": {119 "original": {
94 },125 },
95 "root": {126 "root": {
96 "inputs": {127 "inputs": {
128 "cpp-jsonnet-for-tests": "cpp-jsonnet-for-tests",
97 "crane": "crane",129 "crane": "crane",
98 "fenix": "fenix",130 "fenix": "fenix",
99 "flake-parts": "flake-parts",131 "flake-parts": "flake-parts",
132 "go-jsonnet-for-tests": "go-jsonnet-for-tests",
100 "hercules-ci-effects": "hercules-ci-effects",133 "hercules-ci-effects": "hercules-ci-effects",
101 "nixpkgs": "nixpkgs",134 "nixpkgs": "nixpkgs",
102 "shelly": "shelly",135 "shelly": "shelly",
141 ]174 ]
142 },175 },
143 "locked": {176 "locked": {
144 "lastModified": 1775125835,177 "lastModified": 1775636079,
145 "owner": "numtide",178 "owner": "numtide",
146 "repo": "treefmt-nix",179 "repo": "treefmt-nix",
147 "rev": "75925962939880974e3ab417879daffcba36c4a3",180 "rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba",
148 "type": "github"181 "type": "github"
149 },182 },
150 "original": {183 "original": {
modifiedflake.nixdiffbeforeafterboth
19 url = "github:numtide/treefmt-nix";19 url = "github:numtide/treefmt-nix";
20 inputs.nixpkgs.follows = "nixpkgs";20 inputs.nixpkgs.follows = "nixpkgs";
21 };21 };
22 crane.url = "github:CertainLach/crane/refactor/drop-remarshal";22 crane.url = "github:ipetkov/crane";
23 shelly.url = "github:CertainLach/shelly";23 shelly.url = "github:CertainLach/shelly";
24
25 cpp-jsonnet-for-tests = {
26 url = "github:google/jsonnet";
27 flake = false;
28 };
29 go-jsonnet-for-tests = {
30 url = "github:google/go-jsonnet";
31 flake = false;
32 };
24 };33 };
25 outputs =34 outputs =
26 inputs:35 inputs:
60 };69 };
61 targetArch = pkgs.stdenv.hostPlatform.parsed.cpu.name;70 targetArch = pkgs.stdenv.hostPlatform.parsed.cpu.name;
62 rustfmt = (pkgs.fenix.complete or pkgs.fenix.stable).rustfmt;71 rustfmt = (pkgs.fenix.complete or pkgs.fenix.stable).rustfmt;
63 rust-analyzer = (pkgs.fenix.complete or pkgs.fenix.stable).rust-analyzer;
64 toolchain = pkgs.fenix.combine [72 toolchain = pkgs.fenix.combine [
65 (pkgs.fenix.stable.withComponents [73 (pkgs.fenix.complete.withComponents [
66 "cargo"74 "cargo"
67 "clippy"75 "clippy"
68 "rustc"76 "rustc"
69 "rust-src"77 "rust-src"
78 "rustfmt"
79 "rust-analyzer"
70 ])80 ])
71 rustfmt
72 rust-analyzer
73 pkgs.fenix.targets.wasm32-unknown-unknown.stable.rust-std81 pkgs.fenix.targets.wasm32-unknown-unknown.latest.rust-std
74 ];82 ];
75 craneLib = (inputs.crane.mkLib pkgs).overrideToolchain toolchain;83 craneLib = (inputs.crane.mkLib pkgs).overrideToolchain toolchain;
76 treefmt =84 treefmt =
238 let246 let
239 jrsonnet = pkgs.callPackage ./nix/jrsonnet.nix {247 jrsonnet = pkgs.callPackage ./nix/jrsonnet.nix {
240 inherit craneLib;248 inherit craneLib;
249 inherit (inputs) cpp-jsonnet-for-tests go-jsonnet-for-tests;
241 };250 };
242 jrsonnet-experimental = pkgs.callPackage ./nix/jrsonnet.nix {251 jrsonnet-experimental = pkgs.callPackage ./nix/jrsonnet.nix {
243 inherit craneLib;252 inherit craneLib;
253 inherit (inputs) cpp-jsonnet-for-tests go-jsonnet-for-tests;
244 withExperimentalFeatures = true;254 withExperimentalFeatures = true;
245 };255 };
246 in256 in
272 kdePackages.kcachegrind282 kdePackages.kcachegrind
273 samply283 samply
274 ];284 ];
285 environment = {
286 CPP_JSONNET_FOR_TESTS = inputs.cpp-jsonnet-for-tests;
287 GO_JSONNET_FOR_TESTS = inputs.go-jsonnet-for-tests;
288 };
275 };289 };
290 shelly.shells.impls = {
291 packages =
292 (with self'.legacyPackages.jsonnetImpls; [
293 cpp-jsonnet
294 go-jsonnet
295 rsjsonnet
296 sjsonnet
297 ])
298 ++ (with self'.packages; [
299 jrsonnet
300 ]);
301 };
276 };302 };
277 hercules-ci.github-releases.files =303 hercules-ci.github-releases.files =
278 let304 let
352 enable = true;378 enable = true;
353 secretName = "crates-io";379 secretName = "crates-io";
354 extraPublishArgs = [ "--workspace" ];380 extraPublishArgs = [ "--workspace" ];
381 assertVersions = true;
355 };382 };
356 hercules-ci.flake-update = {383 hercules-ci.flake-update = {
357 enable = true;384 enable = true;
modifiednix/jrsonnet.nixdiffbeforeafterboth
5 withExperimentalFeatures ? false,5 withExperimentalFeatures ? false,
6 forBenchmarks ? false,6 forBenchmarks ? false,
7
8 cpp-jsonnet-for-tests,
9 go-jsonnet-for-tests,
7}:10}:
8let11let
9 inherit (lib) optionalString;12 inherit (lib) optionalString;
1821
19 cargoExtraArgs = "--locked --features=mimalloc${optionalString withExperimentalFeatures ",experimental"}";22 cargoExtraArgs = "--locked --features=mimalloc${optionalString withExperimentalFeatures ",experimental"}";
23
24 CPP_JSONNET_FOR_TESTS = cpp-jsonnet-for-tests;
25 GO_JSONNET_FOR_TESTS = go-jsonnet-for-tests;
2026
21 nativeBuildInputs = [ makeWrapper ];27 nativeBuildInputs = [ makeWrapper ];
2228
modifiedtests/cpp_test_suite_golden_override/error.01.jsonnet.goldendiffbeforeafterboth
1runtime error: foo1runtime error: foo
2 error.01.jsonnet:17:29-35: error statement2 error.01.jsonnet:17:29-33: error statement
3 error.01.jsonnet:18:36-40: function <bananas> call3 error.01.jsonnet:18:36-38: function <bananas> call
4 error.01.jsonnet:19:35-39: function <oranges> call4 error.01.jsonnet:19:35-37: function <oranges> call
5 error.01.jsonnet:20:7-11: function <apples> call5 error.01.jsonnet:20:7-9: function <apples> call
modifiedtests/cpp_test_suite_golden_override/error.02.jsonnet.goldendiffbeforeafterboth
1runtime error: Foo.1runtime error: Foo.
2 error.02.jsonnet:17:1-7: error statement2 error.02.jsonnet:17:1-5: error statement
modifiedtests/cpp_test_suite_golden_override/error.03.jsonnet.goldendiffbeforeafterboth
1runtime error: foo1runtime error: foo
2 error.03.jsonnet:17:21-27: error statement2 error.03.jsonnet:17:21-25: error statement
3 error.03.jsonnet:18:8-10: field <x> access3 error.03.jsonnet:18:8-8: field <x> access
modifiedtests/cpp_test_suite_golden_override/error.04.jsonnet.goldendiffbeforeafterboth
1runtime error: foo1runtime error: foo
2 error.04.jsonnet:17:21-27: error statement2 error.04.jsonnet:17:21-25: error statement
3 field <x> evaluation3 field <x> evaluation
modifiedtests/cpp_test_suite_golden_override/error.05.jsonnet.goldendiffbeforeafterboth
1runtime error: foo1runtime error: foo
2 error.05.jsonnet:17:21-27: error statement2 error.05.jsonnet:17:21-25: error statement
3 field <x> evaluation3 field <x> evaluation
4 field <y> manifestification4 field <y> manifestification
modifiedtests/cpp_test_suite_golden_override/error.06.jsonnet.goldendiffbeforeafterboth
1attempted to divide by zero1attempted to divide by zero
2 error.06.jsonnet:19:2-5: function <f> call2 error.06.jsonnet:19:2-3: function <f> call
modifiedtests/cpp_test_suite_golden_override/error.07.jsonnet.goldendiffbeforeafterboth
1runtime error: sarcasm1runtime error: sarcasm
2 error.07.jsonnet:18:31-37: error statement2 error.07.jsonnet:18:31-35: error statement
3 error.07.jsonnet:17:33-35: element <3> access3 error.07.jsonnet:17:33-33: element <3> access
4 error.07.jsonnet:18:20-55: function <third> call4 error.07.jsonnet:18:20-53: function <third> call
modifiedtests/cpp_test_suite_golden_override/error.08.jsonnet.goldendiffbeforeafterboth
1runtime error: {"a": 1, "b": 2, "c": 3}1runtime error: {"a": 1, "b": 2, "c": 3}
2 error.08.jsonnet:18:1-7: error statement2 error.08.jsonnet:18:1-5: error statement
modifiedtests/cpp_test_suite_golden_override/error.assert.fail1.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 error.assert.fail1.jsonnet:20:8-15: assertion failure2 error.assert.fail1.jsonnet:20:8-13: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.assert.fail2.jsonnet.goldendiffbeforeafterboth
1assert failed: foo was not equal to bar1assert failed: foo was not equal to bar
2 error.assert.fail2.jsonnet:20:8-15: assertion failure2 error.assert.fail2.jsonnet:20:8-13: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.assert_equal_obj.jsonnet.goldendiffbeforeafterboth
5B: {5B: {
6 "b": 16 "b": 1
7}7}
8 error.assert_equal_obj.jsonnet:17:16-37: function <builtin_assert_equal> call8 error.assert_equal_obj.jsonnet:17:16-35: function <builtin_assert_equal> call
modifiedtests/cpp_test_suite_golden_override/error.assert_equal_str.jsonnet.goldendiffbeforeafterboth
8four8four
99
10</B>10</B>
11 error.assert_equal_str.jsonnet:17:16-46: function <builtin_assert_equal> call11 error.assert_equal_str.jsonnet:17:16-44: function <builtin_assert_equal> call
modifiedtests/cpp_test_suite_golden_override/error.decodeUTF8_float.jsonnet.goldendiffbeforeafterboth
1runtime error: cannot convert number with fractional part to u81runtime error: cannot convert number with fractional part to u8
2 argument <arr> evaluation2 argument <arr> evaluation
3 error.decodeUTF8_float.jsonnet:1:15-24: function <builtin_decode_utf8> call3 error.decodeUTF8_float.jsonnet:1:15-22: function <builtin_decode_utf8> call
modifiedtests/cpp_test_suite_golden_override/error.decodeUTF8_nan.jsonnet.goldendiffbeforeafterboth
1type error: expected BoundedNumber<0, 255>, got string at self[0]1type error: expected BoundedNumber<0, 255>, got string at self[0]
2 array index 02 array index 0
3 argument <arr> evaluation3 argument <arr> evaluation
4 error.decodeUTF8_nan.jsonnet:1:15-25: function <builtin_decode_utf8> call4 error.decodeUTF8_nan.jsonnet:1:15-23: function <builtin_decode_utf8> call
modifiedtests/cpp_test_suite_golden_override/error.flatMap_array_typecheck.jsonnet.goldendiffbeforeafterboth
1runtime error: in std.join all items should be arrays1runtime error: in std.join all items should be arrays
2 error.flatMap_array_typecheck.jsonnet:1:12-45: function <builtin_flatmap> call2 error.flatMap_array_typecheck.jsonnet:1:12-43: function <builtin_flatmap> call
modifiedtests/cpp_test_suite_golden_override/error.flatMap_seq_typecheck.jsonnet.goldendiffbeforeafterboth
2 - expected array, got object2 - expected array, got object
3 - expected string, got object3 - expected string, got object
4 argument <arr> evaluation4 argument <arr> evaluation
5 error.flatMap_seq_typecheck.jsonnet:1:12-52: function <builtin_flatmap> call5 error.flatMap_seq_typecheck.jsonnet:1:12-50: function <builtin_flatmap> call
modifiedtests/cpp_test_suite_golden_override/error.flatMap_string_typecheck.jsonnet.goldendiffbeforeafterboth
1runtime error: in std.join all items should be strings1runtime error: in std.join all items should be strings
2 error.flatMap_string_typecheck.jsonnet:1:12-50: function <builtin_flatmap> call2 error.flatMap_string_typecheck.jsonnet:1:12-48: function <builtin_flatmap> call
modifiedtests/cpp_test_suite_golden_override/error.function_duplicate_arg.jsonnet.goldendiffbeforeafterboth
1argument x is already bound1argument x is already bound
2 error.function_duplicate_arg.jsonnet:17:21-30: function <anonymous> preparation2 error.function_duplicate_arg.jsonnet:17:21-28: function <anonymous> preparation
modifiedtests/cpp_test_suite_golden_override/error.function_too_many_args.jsonnet.goldendiffbeforeafterboth
1too many args, function has 21too many args, function has 2
2Function has the following signature: (a, b)2Function has the following signature: (a, b)
3 error.function_too_many_args.jsonnet:19:4-14: function <foo> preparation3 error.function_too_many_args.jsonnet:19:4-12: function <foo> preparation
modifiedtests/cpp_test_suite_golden_override/error.import_static-check-failure.jsonnet.goldendiffbeforeafterboth
1static analysis errors: undefined local: x1static analysis errors: undefined local: x
2 error.import_static-check-failure.jsonnet:1:1-8: import2 error.import_static-check-failure.jsonnet:1:1-6: import
modifiedtests/cpp_test_suite_golden_override/error.import_syntax-error.jsonnet.goldendiffbeforeafterboth
1syntax error: unterminated double-quoted string1syntax error: unterminated double-quoted string
2 syntax_error.jsonnet:1:12 lib/syntax_error.jsonnet:1:1
3 error.import_syntax-error.jsonnet:1:1-8: import3 lib/syntax_error.jsonnet:1:1-2:0: parse imported
4 error.import_syntax-error.jsonnet:1:1-6: import
modifiedtests/cpp_test_suite_golden_override/error.inside_equals_array.jsonnet.goldendiffbeforeafterboth
1runtime error: foobar1runtime error: foobar
2 error.inside_equals_array.jsonnet:18:18-24: error statement2 error.inside_equals_array.jsonnet:18:18-22: error statement
modifiedtests/cpp_test_suite_golden_override/error.inside_equals_object.jsonnet.goldendiffbeforeafterboth
1runtime error: foobar1runtime error: foobar
2 error.inside_equals_object.jsonnet:18:22-28: error statement2 error.inside_equals_object.jsonnet:18:22-26: error statement
modifiedtests/cpp_test_suite_golden_override/error.inside_tostring_array.jsonnet.goldendiffbeforeafterboth
1runtime error: foobar1runtime error: foobar
2 error.inside_tostring_array.jsonnet:17:8-14: error statement2 error.inside_tostring_array.jsonnet:17:8-12: error statement
3 elem <2> evaluation3 elem <2> evaluation
modifiedtests/cpp_test_suite_golden_override/error.inside_tostring_object.jsonnet.goldendiffbeforeafterboth
1runtime error: foobar1runtime error: foobar
2 error.inside_tostring_object.jsonnet:17:12-18: error statement2 error.inside_tostring_object.jsonnet:17:12-16: error statement
3 field <b> evaluation3 field <b> evaluation
modifiedtests/cpp_test_suite_golden_override/error.invariant.avoid_output_change.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 error.invariant.avoid_output_change.jsonnet:18:10-25: assertion failure2 error.invariant.avoid_output_change.jsonnet:18:10-23: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.invariant.equality.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 error.invariant.equality.jsonnet:17:10-16: assertion failure2 error.invariant.equality.jsonnet:17:10-14: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.invariant.option.jsonnet.goldendiffbeforeafterboth
1type error: expected array, got string1type error: expected array, got string
2 argument <a> evaluation2 argument <a> evaluation
3 error.invariant.option.jsonnet:19:33-56: function <builtin_set_inter> call3 error.invariant.option.jsonnet:19:33-54: function <builtin_set_inter> call
4 argument <x> evaluation4 argument <x> evaluation
5 error.invariant.option.jsonnet:19:20-57: function <builtin_length> call5 error.invariant.option.jsonnet:19:20-55: function <builtin_length> call
6 error.invariant.option.jsonnet:19:10-61: assertion condition6 error.invariant.option.jsonnet:19:10-59: assertion condition
modifiedtests/cpp_test_suite_golden_override/error.invariant.simple.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 error.invariant.simple.jsonnet:18:10-16: assertion failure2 error.invariant.simple.jsonnet:18:10-14: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.invariant.simple2.jsonnet.goldendiffbeforeafterboth
1assert failed: my error message1assert failed: my error message
2 error.invariant.simple2.jsonnet:18:10-17: assertion failure2 error.invariant.simple2.jsonnet:18:10-15: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.invariant.simple3.jsonnet.goldendiffbeforeafterboth
1runtime error: my error message1runtime error: my error message
2 error.invariant.simple3.jsonnet:18:10-16: error statement2 error.invariant.simple3.jsonnet:18:10-14: error statement
3 error.invariant.simple3.jsonnet:18:10-35: assertion condition3 error.invariant.simple3.jsonnet:18:10-33: assertion condition
modifiedtests/cpp_test_suite_golden_override/error.manifest_toml_null_value.jsonnet.goldendiffbeforeafterboth
2 table <c> manifestification2 table <c> manifestification
3 section <b> manifestification3 section <b> manifestification
4 section <a> manifestification4 section <a> manifestification
5 error.manifest_toml_null_value.jsonnet:17:19-55: function <builtin_manifest_toml_ex> call5 error.manifest_toml_null_value.jsonnet:17:19-53: function <builtin_manifest_toml_ex> call
modifiedtests/cpp_test_suite_golden_override/error.manifest_toml_wrong_type.jsonnet.goldendiffbeforeafterboth
1type error: expected object, got array1type error: expected object, got array
2 argument <value> evaluation2 argument <value> evaluation
3 error.manifest_toml_wrong_type.jsonnet:17:19-30: function <builtin_manifest_toml_ex> call3 error.manifest_toml_wrong_type.jsonnet:17:19-28: function <builtin_manifest_toml_ex> call
modifiedtests/cpp_test_suite_golden_override/error.obj_assert.fail1.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 error.obj_assert.fail1.jsonnet:20:23-30: assertion failure2 error.obj_assert.fail1.jsonnet:20:23-28: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.obj_assert.fail2.jsonnet.goldendiffbeforeafterboth
1assert failed: foo was not equal to bar1assert failed: foo was not equal to bar
2 error.obj_assert.fail2.jsonnet:20:23-30: assertion failure2 error.obj_assert.fail2.jsonnet:20:23-28: assertion failure
modifiedtests/cpp_test_suite_golden_override/error.overflow.jsonnet.goldendiffbeforeafterboth
1syntax error: invalid number value: non-finite1syntax error: invalid number value: non-finite
2 error.overflow.jsonnet:17:12 error.overflow.jsonnet:17:1
3 error.overflow.jsonnet:17:1-5: parse imported
modifiedtests/cpp_test_suite_golden_override/error.overflow3.jsonnet.goldendiffbeforeafterboth
1syntax error: invalid number value: non-finite1syntax error: invalid number value: non-finite
2 error.overflow3.jsonnet:17:12 error.overflow3.jsonnet:17:1
3 error.overflow3.jsonnet:17:1-5: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.array_comma.jsonnet.goldendiffbeforeafterboth
1syntax error: expected ']', got number "3"1syntax error: expected ']', got number "3"
2 error.parse.array_comma.jsonnet:17:72 error.parse.array_comma.jsonnet:17:7
3 error.parse.array_comma.jsonnet:17:7-7: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.function_arg_positional_after_named.jsonnet.goldendiffbeforeafterboth
1syntax error: positional argument after named argument1syntax error: positional argument after named argument
2 error.parse.function_arg_positional_after_named.jsonnet:19:102 error.parse.function_arg_positional_after_named.jsonnet:19:10
3 error.parse.function_arg_positional_after_named.jsonnet:19:10-10: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.import_text_block.jsonnet.goldendiffbeforeafterboth
1can't resolve This is a paragraph of text, which is being used in the place of1import file not found This is a paragraph of text, which is being used in the place of
2a filename. That is quite unusual, and probably not intended.2a filename. That is quite unusual, and probably not intended.
3 from /home/lach/build/jrsonnet-pr/tests/cpp_test_suite/error.parse.import_text_block.jsonnet3 from error.parse.import_text_block.jsonnet
modifiedtests/cpp_test_suite_golden_override/error.parse.index_unterminated.jsonnet.goldendiffbeforeafterboth
1syntax error: unexpected end of file1syntax error: unexpected end of file
2 error.parse.index_unterminated.jsonnet:17:32 error.parse.index_unterminated.jsonnet:17:3
3 error.parse.index_unterminated.jsonnet:17:3-0:0: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.method_plus.jsonnet.goldendiffbeforeafterboth
1syntax error: expected ':', got '+'1syntax error: expected ':', got '+'
2 error.parse.method_plus.jsonnet:17:182 error.parse.method_plus.jsonnet:17:18
3 error.parse.method_plus.jsonnet:17:18-18: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.object_comma.jsonnet.goldendiffbeforeafterboth
1syntax error: expected '}', got identifier "z"1syntax error: expected '}', got identifier "z"
2 error.parse.object_comma.jsonnet:17:112 error.parse.object_comma.jsonnet:17:11
3 error.parse.object_comma.jsonnet:17:11-11: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.object_comprehension_local_clash.jsonnet.goldendiffbeforeafterboth
1syntax error: expected '}', got ':'1syntax error: expected '}', got ':'
2 error.parse.object_comprehension_local_clash.jsonnet:17:292 error.parse.object_comprehension_local_clash.jsonnet:17:29
3 error.parse.object_comprehension_local_clash.jsonnet:17:29-29: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.self_in_computed_field.jsonnet.goldendiffbeforeafterboth
1syntax error: expected field name, got 'self'1syntax error: expected field name, got 'self'
2 error.parse.self_in_computed_field.jsonnet:17:152 error.parse.self_in_computed_field.jsonnet:17:15
3 error.parse.self_in_computed_field.jsonnet:17:15-18: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.static_error_bad_number.jsonnet.goldendiffbeforeafterboth
1syntax error: unexpected '.'1syntax error: unexpected '.'
2 error.parse.static_error_bad_number.jsonnet:17:12 error.parse.static_error_bad_number.jsonnet:17:1
3 error.parse.static_error_bad_number.jsonnet:17:1-1: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string.invalid_escape.jsonnet.goldendiffbeforeafterboth
1syntax error: invalid string escape1syntax error: invalid string escape
2 error.parse.string.invalid_escape.jsonnet:17:12 error.parse.string.invalid_escape.jsonnet:17:1
3 error.parse.string.invalid_escape.jsonnet:17:1-4: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string.invalid_escape_unicode_non_hex.jsonnet.goldendiffbeforeafterboth
1syntax error: invalid string escape1syntax error: invalid string escape
2 error.parse.string.invalid_escape_unicode_non_hex.jsonnet:17:12 error.parse.string.invalid_escape_unicode_non_hex.jsonnet:17:1
3 error.parse.string.invalid_escape_unicode_non_hex.jsonnet:17:1-8: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string.invalid_escape_unicode_short.jsonnet.goldendiffbeforeafterboth
1syntax error: unterminated double-quoted string1syntax error: unterminated double-quoted string
2 error.parse.string.invalid_escape_unicode_short.jsonnet:17:12 error.parse.string.invalid_escape_unicode_short.jsonnet:17:1
3 error.parse.string.invalid_escape_unicode_short.jsonnet:17:1-18:0: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string.invalid_escape_unicode_short2.jsonnet.goldendiffbeforeafterboth
1syntax error: invalid string escape1syntax error: invalid string escape
2 error.parse.string.invalid_escape_unicode_short2.jsonnet:17:12 error.parse.string.invalid_escape_unicode_short2.jsonnet:17:1
3 error.parse.string.invalid_escape_unicode_short2.jsonnet:17:1-7: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string.invalid_escape_unicode_short3.jsonnet.goldendiffbeforeafterboth
1syntax error: unterminated double-quoted string1syntax error: unterminated double-quoted string
2 error.parse.string.invalid_escape_unicode_short3.jsonnet:17:12 error.parse.string.invalid_escape_unicode_short3.jsonnet:17:1
3 error.parse.string.invalid_escape_unicode_short3.jsonnet:17:1-18:0: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string.unfinished.jsonnet.goldendiffbeforeafterboth
1syntax error: unterminated double-quoted string1syntax error: unterminated double-quoted string
2 error.parse.string.unfinished.jsonnet:17:12 error.parse.string.unfinished.jsonnet:17:1
3 error.parse.string.unfinished.jsonnet:17:1-18:0: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string.unfinished2.jsonnet.goldendiffbeforeafterboth
1syntax error: unterminated single-quoted string1syntax error: unterminated single-quoted string
2 error.parse.string.unfinished2.jsonnet:17:12 error.parse.string.unfinished2.jsonnet:17:1
3 error.parse.string.unfinished2.jsonnet:17:1-18:0: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.string_multi_no_newline.jsonnet.goldendiffbeforeafterboth
1syntax error: text block requires new line after |||1syntax error: text block requires new line after |||
2 error.parse.string_multi_no_newline.jsonnet:17:12 error.parse.string_multi_no_newline.jsonnet:17:1
3 error.parse.string_multi_no_newline.jsonnet:17:1-18:0: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.text_block_bad_whitespace.jsonnet.goldendiffbeforeafterboth
1syntax error: unterminated text block1syntax error: unterminated text block
2 error.parse.text_block_bad_whitespace.jsonnet:17:12 error.parse.text_block_bad_whitespace.jsonnet:17:1
3 error.parse.text_block_bad_whitespace.jsonnet:17:1-20:3: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.text_block_eof.jsonnet.goldendiffbeforeafterboth
1syntax error: unexpected end of text block1syntax error: unexpected end of text block
2 error.parse.text_block_eof.jsonnet:17:12 error.parse.text_block_eof.jsonnet:17:1
3 error.parse.text_block_eof.jsonnet:17:1-18:6: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.text_block_indent_spaces.jsonnet.goldendiffbeforeafterboth
1syntax error: unterminated text block1syntax error: unterminated text block
2 error.parse.text_block_indent_spaces.jsonnet:17:12 error.parse.text_block_indent_spaces.jsonnet:17:1
3 error.parse.text_block_indent_spaces.jsonnet:17:1-20:3: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse.text_block_not_terminated.jsonnet.goldendiffbeforeafterboth
1syntax error: unexpected end of text block1syntax error: unexpected end of text block
2 error.parse.text_block_not_terminated.jsonnet:17:12 error.parse.text_block_not_terminated.jsonnet:17:1
3 error.parse.text_block_not_terminated.jsonnet:17:1-19:0: parse imported
modifiedtests/cpp_test_suite_golden_override/error.parse_json.jsonnet.goldendiffbeforeafterboth
1runtime error: failed to parse json: expected value at line 1 column 11runtime error: failed to parse json: expected value at line 1 column 1
2 error.parse_json.jsonnet:1:14-30: function <builtin_parse_json> call2 error.parse_json.jsonnet:1:14-28: function <builtin_parse_json> call
modifiedtests/cpp_test_suite_golden_override/error.recursive_function_nonterm.jsonnet.goldendiffbeforeafterboth
1stack overflow, try to reduce recursion, or set --max-stack to bigger value1stack overflow, try to reduce recursion, or set --max-stack to bigger value
2 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call2 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
3 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call3 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
4 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call4 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
5 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call5 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
6 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call6 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
7 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call7 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
8 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call8 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
9 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call9 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
10 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call10 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
11 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call11 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
12 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call12 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
13 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call13 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
14 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call14 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
15 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call15 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
16 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call16 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
17 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call17 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
18 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call18 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
19 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call19 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
20 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call20 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
21 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call21 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
22 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call22 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
23 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call23 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
24 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call24 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
25 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call25 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
26 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call26 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
27 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call27 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
28 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call28 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
29 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call29 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
30 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call30 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
31 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call31 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
32 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call32 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
33 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call33 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
34 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call34 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
35 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call35 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
36 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call36 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
37 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call37 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
38 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call38 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
39 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call39 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
40 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call40 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
41 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call41 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
42 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call42 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
43 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call43 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
44 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call44 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
45 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call45 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
46 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call46 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
47 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call47 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
48 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call48 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
49 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call49 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
50 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call50 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
51 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call51 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
52 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call52 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
53 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call53 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
54 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call54 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
55 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call55 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
56 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call56 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
57 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call57 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
58 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call58 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
59 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call59 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
60 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call60 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
61 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call61 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
62 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call62 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
63 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call63 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
64 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call64 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
65 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call65 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
66 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call66 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
67 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call67 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
68 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call68 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
69 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call69 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
70 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call70 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
71 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call71 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
72 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call72 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
73 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call73 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
74 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call74 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
75 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call75 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
76 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call76 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
77 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call77 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
78 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call78 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
79 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call79 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
80 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call80 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
81 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call81 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
82 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call82 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
83 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call83 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
84 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call84 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
85 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call85 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
86 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call86 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
87 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call87 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
88 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call88 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
89 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call89 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
90 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call90 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
91 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call91 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
92 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call92 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
93 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call93 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
94 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call94 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
95 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call95 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
96 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call96 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
97 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call97 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
98 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call98 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
99 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call99 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
100 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call100 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
101 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call101 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
102 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call102 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
103 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call103 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
104 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call104 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
105 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call105 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
106 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call106 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
107 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call107 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
108 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call108 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
109 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call109 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
110 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call110 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
111 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call111 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
112 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call112 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
113 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call113 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
114 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call114 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
115 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call115 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
116 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call116 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
117 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call117 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
118 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call118 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
119 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call119 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
120 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call120 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
121 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call121 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
122 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call122 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
123 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call123 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
124 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call124 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
125 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call125 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
126 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call126 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
127 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call127 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
128 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call128 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
129 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call129 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
130 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call130 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
131 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call131 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
132 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call132 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
133 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call133 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
134 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call134 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
135 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call135 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
136 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call136 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
137 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call137 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
138 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call138 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
139 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call139 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
140 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call140 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
141 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call141 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
142 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call142 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
143 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call143 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
144 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call144 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
145 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call145 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
146 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call146 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
147 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call147 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
148 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call148 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
149 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call149 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
150 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call150 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
151 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call151 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
152 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call152 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
153 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call153 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
154 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call154 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
155 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call155 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
156 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call156 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
157 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call157 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
158 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call158 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
159 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call159 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
160 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call160 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
161 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call161 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
162 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call162 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
163 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call163 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
164 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call164 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
165 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call165 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
166 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call166 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
167 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call167 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
168 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call168 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
169 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call169 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
170 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call170 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
171 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call171 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
172 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call172 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
173 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call173 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
174 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call174 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
175 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call175 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
176 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call176 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
177 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call177 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
178 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call178 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
179 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call179 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
180 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call180 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
181 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call181 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
182 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call182 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
183 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call183 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
184 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call184 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
185 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call185 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
186 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call186 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
187 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call187 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
188 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call188 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
189 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call189 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
190 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call190 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
191 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call191 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
192 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call192 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
193 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call193 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
194 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call194 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
195 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call195 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
196 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call196 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
197 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call197 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
198 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call198 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
199 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call199 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
200 error.recursive_function_nonterm.jsonnet:18:4-8: function <f> call200 error.recursive_function_nonterm.jsonnet:18:4-6: function <f> call
201 error.recursive_function_nonterm.jsonnet:20:2-7: function <f> call201 error.recursive_function_nonterm.jsonnet:20:2-5: function <f> call
modifiedtests/cpp_test_suite_golden_override/error.recursive_import.jsonnet.goldendiffbeforeafterboth
1infinite recursion detected1infinite recursion detected
2 error.recursive_import.jsonnet:17:15-22: import2 error.recursive_import.jsonnet:17:15-20: import
modifiedtests/cpp_test_suite_golden_override/error.sanity.jsonnet.goldendiffbeforeafterboth
1runtime error: assertion failed: A != B1runtime error: assertion failed: A != B
2A: 12A: 1
3B: 23B: 2
4 error.sanity.jsonnet:17:16-23: function <builtin_assert_equal> call4 error.sanity.jsonnet:17:16-21: function <builtin_assert_equal> call
modifiedtests/cpp_test_suite_golden_override/error.std_join_types1.jsonnet.goldendiffbeforeafterboth
1runtime error: in std.join all items should be strings1runtime error: in std.join all items should be strings
2 error.std_join_types1.jsonnet:17:9-27: function <builtin_join> call2 error.std_join_types1.jsonnet:17:9-25: function <builtin_join> call
modifiedtests/cpp_test_suite_golden_override/error.std_join_types2.jsonnet.goldendiffbeforeafterboth
1runtime error: in std.join all items should be arrays1runtime error: in std.join all items should be arrays
2 error.std_join_types2.jsonnet:17:9-32: function <builtin_join> call2 error.std_join_types2.jsonnet:17:9-30: function <builtin_join> call
modifiedtests/cpp_test_suite_golden_override/error.std_makeArray_negative.jsonnet.goldendiffbeforeafterboth
1type error: number out of bounds: -10 not in 0..42949672951type error: number out of bounds: -10 not in 0..4294967295
2 argument <sz> evaluation2 argument <sz> evaluation
3 error.std_makeArray_negative.jsonnet:17:14-38: function <builtin_make_array> call3 error.std_makeArray_negative.jsonnet:17:14-36: function <builtin_make_array> call
modifiedtests/cpp_test_suite_golden_override/error.std_maxArray.jsonnet.goldendiffbeforeafterboth
1runtime error: expected non-empty array1runtime error: expected non-empty array
2 error.std_maxArray.jsonnet:1:13-18: function <builtin_max_array> call2 error.std_maxArray.jsonnet:1:13-16: function <builtin_max_array> call
modifiedtests/cpp_test_suite_golden_override/error.std_minArray.jsonnet.goldendiffbeforeafterboth
1runtime error: expected non-empty array1runtime error: expected non-empty array
2 error.std_minArray.jsonnet:1:13-18: function <builtin_min_array> call2 error.std_minArray.jsonnet:1:13-16: function <builtin_min_array> call
modifiedtests/cpp_test_suite_golden_override/error.std_parseJson.nodigitsep.jsonnet.goldendiffbeforeafterboth
1runtime error: failed to parse json: trailing characters at line 1 column 41runtime error: failed to parse json: trailing characters at line 1 column 4
2 error.std_parseJson.nodigitsep.jsonnet:1:14-26: function <builtin_parse_json> call2 error.std_parseJson.nodigitsep.jsonnet:1:14-24: function <builtin_parse_json> call
modifiedtests/cpp_test_suite_golden_override/error.std_parseYaml1.jsonnet.goldendiffbeforeafterboth
3 |3 |
41 | a: b:41 | a: b:
5 | ^ mapping values are not allowed in this context5 | ^ mapping values are not allowed in this context
6 error.std_parseYaml1.jsonnet:1:14-24: function <builtin_parse_yaml> call6 error.std_parseYaml1.jsonnet:1:14-22: function <builtin_parse_yaml> call
modifiedtests/cpp_test_suite_golden_override/error.trace_three_param.jsonnet.goldendiffbeforeafterboth
1too many args, function has 21too many args, function has 2
2Function has the following signature: (str, rest = <default>)2Function has the following signature: (str, rest = <default>)
3 error.trace_three_param.jsonnet:17:20-33: function <builtin_trace> preparation3 error.trace_three_param.jsonnet:17:20-31: function <builtin_trace> preparation
4 field <a> evaluation4 field <a> evaluation
modifiedtests/cpp_test_suite_golden_override/error.trace_zero_param.jsonnet.goldendiffbeforeafterboth
1function argument is not passed: str1function argument is not passed: str
2Function has the following signature: (str, rest = <default>)2Function has the following signature: (str, rest = <default>)
3 error.trace_zero_param.jsonnet:17:20-23: function <builtin_trace> preparation3 error.trace_zero_param.jsonnet:17:20-21: function <builtin_trace> preparation
4 field <a> evaluation4 field <a> evaluation
modifiedtests/cpp_test_suite_golden_override/error.verbatim_import.jsonnet.goldendiffbeforeafterboth
1can't resolve C:\can't possibly exist~ from /home/lach/build/jrsonnet-pr/tests/cpp_test_suite/error.verbatim_import.jsonnet1import file not found C:\can't possibly exist~ from error.verbatim_import.jsonnet
modifiedtests/cpp_test_suite_golden_override/error.wrong_type.jsonnet.goldendiffbeforeafterboth
1type error: expected char, got number1type error: expected char, got number
2 argument <str> evaluation2 argument <str> evaluation
3 error.wrong_type.jsonnet:1:14-19: function <builtin_codepoint> call3 error.wrong_type.jsonnet:1:14-17: function <builtin_codepoint> call
modifiedtests/go_testdata_golden_override/arrcomp_if6.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 arrcomp_if6.jsonnet:1:20-26: error statement2 arrcomp_if6.jsonnet:1:20-24: error statement
modifiedtests/go_testdata_golden_override/assert3.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 assert3.jsonnet:1:8-17: assertion failure2 assert3.jsonnet:1:8-15: assertion failure
modifiedtests/go_testdata_golden_override/assert_equal4.jsonnet.goldendiffbeforeafterboth
5B: {5B: {
6 "x": 26 "x": 2
7}7}
8 assert_equal4.jsonnet:1:16-33: function <builtin_assert_equal> call8 assert_equal4.jsonnet:1:16-31: function <builtin_assert_equal> call
modifiedtests/go_testdata_golden_override/assert_equal5.jsonnet.goldendiffbeforeafterboth
77
88
9</B>9</B>
10 assert_equal5.jsonnet:1:16-30: function <builtin_assert_equal> call10 assert_equal5.jsonnet:1:16-28: function <builtin_assert_equal> call
modifiedtests/go_testdata_golden_override/assert_equal6.jsonnet.goldendiffbeforeafterboth
5B: <B>5B: <B>
66
7</B>7</B>
8 assert_equal6.jsonnet:1:16-35: function <builtin_assert_equal> call8 assert_equal6.jsonnet:1:16-33: function <builtin_assert_equal> call
modifiedtests/go_testdata_golden_override/assert_failed.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 assert_failed.jsonnet:1:8-14: assertion failure2 assert_failed.jsonnet:1:8-12: assertion failure
modifiedtests/go_testdata_golden_override/assert_failed_custom.jsonnet.goldendiffbeforeafterboth
1assert failed: Custom Message1assert failed: Custom Message
2 assert_failed_custom.jsonnet:1:8-14: assertion failure2 assert_failed_custom.jsonnet:1:8-12: assertion failure
modifiedtests/go_testdata_golden_override/bad_function_call.jsonnet.goldendiffbeforeafterboth
1function argument is not passed: x1function argument is not passed: x
2Function has the following signature: (x)2Function has the following signature: (x)
3 bad_function_call.jsonnet:1:16-19: function <builtin_id> preparation3 bad_function_call.jsonnet:1:16-17: function <builtin_id> preparation
modifiedtests/go_testdata_golden_override/bad_function_call2.jsonnet.goldendiffbeforeafterboth
1too many args, function has 11too many args, function has 1
2Function has the following signature: (x)2Function has the following signature: (x)
3 bad_function_call2.jsonnet:1:16-23: function <builtin_id> preparation3 bad_function_call2.jsonnet:1:16-21: function <builtin_id> preparation
modifiedtests/go_testdata_golden_override/bad_function_call_and_error.jsonnet.goldendiffbeforeafterboth
1too many args, function has 11too many args, function has 1
2Function has the following signature: (x)2Function has the following signature: (x)
3 bad_function_call_and_error.jsonnet:1:16-39: function <builtin_id> preparation3 bad_function_call_and_error.jsonnet:1:16-37: function <builtin_id> preparation
modifiedtests/go_testdata_golden_override/bitwise_and4.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 bitwise_and4.jsonnet:1:5-11: error statement2 bitwise_and4.jsonnet:1:5-9: error statement
modifiedtests/go_testdata_golden_override/bitwise_xor7.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 bitwise_xor7.jsonnet:1:5-11: error statement2 bitwise_xor7.jsonnet:1:5-9: error statement
modifiedtests/go_testdata_golden_override/builtinBase64DecodeBytes_high_codepoint.jsonnet.goldendiffbeforeafterboth
1runtime error: invalid base64: Invalid symbol 196, offset 0.1runtime error: invalid base64: Invalid symbol 196, offset 0.
2 builtinBase64DecodeBytes_high_codepoint.jsonnet:1:22-30: function <builtin_base64_decode_bytes> call2 builtinBase64DecodeBytes_high_codepoint.jsonnet:1:22-28: function <builtin_base64_decode_bytes> call
modifiedtests/go_testdata_golden_override/builtinBase64DecodeBytes_invalid_base64_data.jsonnet.goldendiffbeforeafterboth
1runtime error: invalid base64: Invalid input length: 51runtime error: invalid base64: Invalid input length: 5
2 builtinBase64DecodeBytes_invalid_base64_data.jsonnet:1:22-32: function <builtin_base64_decode_bytes> call2 builtinBase64DecodeBytes_invalid_base64_data.jsonnet:1:22-30: function <builtin_base64_decode_bytes> call
modifiedtests/go_testdata_golden_override/builtinBase64DecodeBytes_wrong_type.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <str> evaluation2 argument <str> evaluation
3 builtinBase64DecodeBytes_wrong_type.jsonnet:1:22-26: function <builtin_base64_decode_bytes> call3 builtinBase64DecodeBytes_wrong_type.jsonnet:1:22-24: function <builtin_base64_decode_bytes> call
modifiedtests/go_testdata_golden_override/builtinBase64Decode_high_codepoint.jsonnet.goldendiffbeforeafterboth
1runtime error: invalid base64: Invalid symbol 196, offset 0.1runtime error: invalid base64: Invalid symbol 196, offset 0.
2 builtinBase64Decode_high_codepoint.jsonnet:1:17-25: function <builtin_base64_decode> call2 builtinBase64Decode_high_codepoint.jsonnet:1:17-23: function <builtin_base64_decode> call
modifiedtests/go_testdata_golden_override/builtinBase64Decode_invalid_base64_data.jsonnet.goldendiffbeforeafterboth
1runtime error: invalid base64: Invalid input length: 51runtime error: invalid base64: Invalid input length: 5
2 builtinBase64Decode_invalid_base64_data.jsonnet:1:17-27: function <builtin_base64_decode> call2 builtinBase64Decode_invalid_base64_data.jsonnet:1:17-25: function <builtin_base64_decode> call
modifiedtests/go_testdata_golden_override/builtinBase64Decode_wrong_type.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <str> evaluation2 argument <str> evaluation
3 builtinBase64Decode_wrong_type.jsonnet:1:17-21: function <builtin_base64_decode> call3 builtinBase64Decode_wrong_type.jsonnet:1:17-19: function <builtin_base64_decode> call
modifiedtests/go_testdata_golden_override/builtinBase64_invalid_byte_array.jsonnet.goldendiffbeforeafterboth
2 - expected string, got array2 - expected string, got array
3 - expected BoundedNumber<0, 255>, got string at self[1]3 - expected BoundedNumber<0, 255>, got string at self[1]
4 argument <input> evaluation4 argument <input> evaluation
5 builtinBase64_invalid_byte_array.jsonnet:1:11-24: function <builtin_base64> call5 builtinBase64_invalid_byte_array.jsonnet:1:11-22: function <builtin_base64> call
modifiedtests/go_testdata_golden_override/builtinBase64_invalid_byte_array1.jsonnet.goldendiffbeforeafterboth
2 - expected string, got array2 - expected string, got array
3 - number out of bounds: -1 not in 0..255 at self[1]3 - number out of bounds: -1 not in 0..255 at self[1]
4 argument <input> evaluation4 argument <input> evaluation
5 builtinBase64_invalid_byte_array1.jsonnet:1:11-21: function <builtin_base64> call5 builtinBase64_invalid_byte_array1.jsonnet:1:11-19: function <builtin_base64> call
modifiedtests/go_testdata_golden_override/builtinBase64_invalid_byte_array2.jsonnet.goldendiffbeforeafterboth
2 - expected string, got array2 - expected string, got array
3 - number out of bounds: 256 not in 0..255 at self[1]3 - number out of bounds: 256 not in 0..255 at self[1]
4 argument <input> evaluation4 argument <input> evaluation
5 builtinBase64_invalid_byte_array2.jsonnet:1:11-22: function <builtin_base64> call5 builtinBase64_invalid_byte_array2.jsonnet:1:11-20: function <builtin_base64> call
modifiedtests/go_testdata_golden_override/builtinBase64_non_string_non_array.jsonnet.goldendiffbeforeafterboth
2 - expected string, got number2 - expected string, got number
3 - expected Array<BoundedNumber<0, 255>>, got number3 - expected Array<BoundedNumber<0, 255>>, got number
4 argument <input> evaluation4 argument <input> evaluation
5 builtinBase64_non_string_non_array.jsonnet:1:11-15: function <builtin_base64> call5 builtinBase64_non_string_non_array.jsonnet:1:11-13: function <builtin_base64> call
modifiedtests/go_testdata_golden_override/builtinChar3.jsonnet.goldendiffbeforeafterboth
1type error: number out of bounds: -1 not in 0..42949672951type error: number out of bounds: -1 not in 0..4294967295
2 argument <n> evaluation2 argument <n> evaluation
3 builtinChar3.jsonnet:1:9-14: function <builtin_char> call3 builtinChar3.jsonnet:1:9-12: function <builtin_char> call
modifiedtests/go_testdata_golden_override/builtinChar5.jsonnet.goldendiffbeforeafterboth
1invalid unicode codepoint: 11141121invalid unicode codepoint: 1114112
2 builtinChar5.jsonnet:2:9-19: function <builtin_char> call2 builtinChar5.jsonnet:2:9-17: function <builtin_char> call
modifiedtests/go_testdata_golden_override/builtinChar7.jsonnet.goldendiffbeforeafterboth
1type error: expected BoundedNumber<0, 4294967295>, got string1type error: expected BoundedNumber<0, 4294967295>, got string
2 argument <n> evaluation2 argument <n> evaluation
3 builtinChar7.jsonnet:1:9-17: function <builtin_char> call3 builtinChar7.jsonnet:1:9-15: function <builtin_char> call
modifiedtests/go_testdata_golden_override/builtinIsEmpty2.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <str> evaluation2 argument <str> evaluation
3 builtinIsEmpty2.jsonnet:1:12-17: function <builtin_is_empty> call3 builtinIsEmpty2.jsonnet:1:12-15: function <builtin_is_empty> call
modifiedtests/go_testdata_golden_override/builtinManifestJsonEx_cyclic.jsonnet.goldendiffbeforeafterboth
198 field <a> manifestification198 field <a> manifestification
199 field <a> manifestification199 field <a> manifestification
200 field <a> manifestification200 field <a> manifestification
201 builtinManifestJsonEx_cyclic.jsonnet:1:19-33: function <builtin_manifest_json_ex> call201 builtinManifestJsonEx_cyclic.jsonnet:1:19-31: function <builtin_manifest_json_ex> call
modifiedtests/go_testdata_golden_override/builtinObjectFieldsEx_bad.jsonnet.goldendiffbeforeafterboth
1type error: expected object, got number1type error: expected object, got number
2 argument <obj> evaluation2 argument <obj> evaluation
3 builtinObjectFieldsEx_bad.jsonnet:1:19-30: function <builtin_object_fields_ex> call3 builtinObjectFieldsEx_bad.jsonnet:1:19-28: function <builtin_object_fields_ex> call
modifiedtests/go_testdata_golden_override/builtinObjectFieldsEx_bad2.jsonnet.goldendiffbeforeafterboth
1type error: expected boolean, got string1type error: expected boolean, got string
2 argument <hidden> evaluation2 argument <hidden> evaluation
3 builtinObjectFieldsEx_bad2.jsonnet:1:19-31: function <builtin_object_fields_ex> call3 builtinObjectFieldsEx_bad2.jsonnet:1:19-29: function <builtin_object_fields_ex> call
modifiedtests/go_testdata_golden_override/builtinObjectHasExBadBoolean.jsonnet.goldendiffbeforeafterboth
1type error: expected boolean, got string1type error: expected boolean, got string
2 argument <hidden> evaluation2 argument <hidden> evaluation
3 builtinObjectHasExBadBoolean.jsonnet:1:16-35: function <builtin_object_has_ex> call3 builtinObjectHasExBadBoolean.jsonnet:1:16-33: function <builtin_object_has_ex> call
modifiedtests/go_testdata_golden_override/builtinObjectHasExBadField.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <fname> evaluation2 argument <fname> evaluation
3 builtinObjectHasExBadField.jsonnet:1:16-32: function <builtin_object_has_ex> call3 builtinObjectHasExBadField.jsonnet:1:16-30: function <builtin_object_has_ex> call
modifiedtests/go_testdata_golden_override/builtinObjectHasExBadObject.jsonnet.goldendiffbeforeafterboth
1type error: expected object, got number1type error: expected object, got number
2 argument <obj> evaluation2 argument <obj> evaluation
3 builtinObjectHasExBadObject.jsonnet:1:16-33: function <builtin_object_has_ex> call3 builtinObjectHasExBadObject.jsonnet:1:16-31: function <builtin_object_has_ex> call
modifiedtests/go_testdata_golden_override/builtinObjectRemoveKey_super_assert.jsonnet.goldendiffbeforeafterboth
1no such field: x1no such field: x
2 builtinObjectRemoveKey_super_assert.jsonnet:2:10-17: assertion condition2 builtinObjectRemoveKey_super_assert.jsonnet:2:10-15: assertion condition
modifiedtests/go_testdata_golden_override/builtinReverse_not_array.jsonnet.goldendiffbeforeafterboth
1type error: expected array, got boolean1type error: expected array, got boolean
2 argument <arr> evaluation2 argument <arr> evaluation
3 builtinReverse_not_array.jsonnet:1:12-20: function <builtin_reverse> call3 builtinReverse_not_array.jsonnet:1:12-18: function <builtin_reverse> call
modifiedtests/go_testdata_golden_override/builtinSplitLimitR5.jsonnet.goldendiffbeforeafterboth
2 - number out of bounds: -2 not in 0..90071992547409912 - number out of bounds: -2 not in 0..9007199254740991
3 - number out of bounds: -2 not in -1..-13 - number out of bounds: -2 not in -1..-1
4 argument <maxsplits> evaluation4 argument <maxsplits> evaluation
5 builtinSplitLimitR5.jsonnet:1:16-45: function <builtin_splitlimitr> call5 builtinSplitLimitR5.jsonnet:1:16-43: function <builtin_splitlimitr> call
modifiedtests/go_testdata_golden_override/builtinSubStr_first_param_not_string.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <str> evaluation2 argument <str> evaluation
3 builtinSubStr_first_param_not_string.jsonnet:1:11-21: function <builtin_substr> call3 builtinSubStr_first_param_not_string.jsonnet:1:11-19: function <builtin_substr> call
modifiedtests/go_testdata_golden_override/builtinSubStr_second_parameter_not_integer.jsonnet.goldendiffbeforeafterboth
1runtime error: cannot convert number with fractional part to usize1runtime error: cannot convert number with fractional part to usize
2 argument <from> evaluation2 argument <from> evaluation
3 builtinSubStr_second_parameter_not_integer.jsonnet:1:11-29: function <builtin_substr> call3 builtinSubStr_second_parameter_not_integer.jsonnet:1:11-27: function <builtin_substr> call
modifiedtests/go_testdata_golden_override/builtinSubStr_second_parameter_not_number.jsonnet.goldendiffbeforeafterboth
1type error: expected BoundedNumber<0, 9007199254740991>, got string1type error: expected BoundedNumber<0, 9007199254740991>, got string
2 argument <from> evaluation2 argument <from> evaluation
3 builtinSubStr_second_parameter_not_number.jsonnet:1:11-31: function <builtin_substr> call3 builtinSubStr_second_parameter_not_number.jsonnet:1:11-29: function <builtin_substr> call
modifiedtests/go_testdata_golden_override/builtinSubStr_third_parameter_less_then_zero.jsonnet.goldendiffbeforeafterboth
1type error: number out of bounds: -1 not in 0..90071992547409911type error: number out of bounds: -1 not in 0..9007199254740991
2 argument <len> evaluation2 argument <len> evaluation
3 builtinSubStr_third_parameter_less_then_zero.jsonnet:1:11-28: function <builtin_substr> call3 builtinSubStr_third_parameter_less_then_zero.jsonnet:1:11-26: function <builtin_substr> call
modifiedtests/go_testdata_golden_override/builtinSubStr_third_parameter_not_integer.jsonnet.goldendiffbeforeafterboth
1runtime error: cannot convert number with fractional part to usize1runtime error: cannot convert number with fractional part to usize
2 argument <len> evaluation2 argument <len> evaluation
3 builtinSubStr_third_parameter_not_integer.jsonnet:1:11-29: function <builtin_substr> call3 builtinSubStr_third_parameter_not_integer.jsonnet:1:11-27: function <builtin_substr> call
modifiedtests/go_testdata_golden_override/builtinSubStr_third_parameter_not_number.jsonnet.goldendiffbeforeafterboth
1type error: expected BoundedNumber<0, 9007199254740991>, got string1type error: expected BoundedNumber<0, 9007199254740991>, got string
2 argument <len> evaluation2 argument <len> evaluation
3 builtinSubStr_third_parameter_not_number.jsonnet:1:11-31: function <builtin_substr> call3 builtinSubStr_third_parameter_not_number.jsonnet:1:11-29: function <builtin_substr> call
modifiedtests/go_testdata_golden_override/builtinTrim4.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <str> evaluation2 argument <str> evaluation
3 builtinTrim4.jsonnet:1:9-14: function <builtin_trim> call3 builtinTrim4.jsonnet:1:9-12: function <builtin_trim> call
modifiedtests/go_testdata_golden_override/builtinXnor2.jsonnet.goldendiffbeforeafterboth
1type error: expected boolean, got string1type error: expected boolean, got string
2 argument <x> evaluation2 argument <x> evaluation
3 builtinXnor2.jsonnet:1:9-25: function <builtin_xnor> call3 builtinXnor2.jsonnet:1:9-23: function <builtin_xnor> call
modifiedtests/go_testdata_golden_override/builtinXor2.jsonnet.goldendiffbeforeafterboth
1type error: expected boolean, got string1type error: expected boolean, got string
2 argument <x> evaluation2 argument <x> evaluation
3 builtinXor2.jsonnet:1:8-24: function <builtin_xor> call3 builtinXor2.jsonnet:1:8-22: function <builtin_xor> call
modifiedtests/go_testdata_golden_override/builtin_exp3.jsonnet.goldendiffbeforeafterboth
1convert num value: non-finite1convert num value: non-finite
2 builtin_exp3.jsonnet:1:8-15: function <builtin_exp> call2 builtin_exp3.jsonnet:1:8-13: function <builtin_exp> call
modifiedtests/go_testdata_golden_override/builtin_exp5.jsonnet.goldendiffbeforeafterboth
1convert num value: non-finite1convert num value: non-finite
2 builtin_exp5.jsonnet:1:8-32: function <builtin_exp> call2 builtin_exp5.jsonnet:1:8-30: function <builtin_exp> call
modifiedtests/go_testdata_golden_override/builtin_log5.jsonnet.goldendiffbeforeafterboth
1convert num value: non-finite1convert num value: non-finite
2 builtin_log5.jsonnet:1:8-12: function <builtin_log> call2 builtin_log5.jsonnet:1:8-10: function <builtin_log> call
modifiedtests/go_testdata_golden_override/builtin_log7.jsonnet.goldendiffbeforeafterboth
1convert num value: non-finite1convert num value: non-finite
2 builtin_log7.jsonnet:1:8-13: function <builtin_log> call2 builtin_log7.jsonnet:1:8-11: function <builtin_log> call
modifiedtests/go_testdata_golden_override/builtin_log8.jsonnet.goldendiffbeforeafterboth
1convert num value: non-finite1convert num value: non-finite
2 builtin_log8.jsonnet:1:8-25: function <builtin_log> call2 builtin_log8.jsonnet:1:8-23: function <builtin_log> call
modifiedtests/go_testdata_golden_override/builtin_manifestTomlEx_array.jsonnet.goldendiffbeforeafterboth
1type error: expected object, got array1type error: expected object, got array
2 argument <value> evaluation2 argument <value> evaluation
3 builtin_manifestTomlEx_array.jsonnet:11:28-42: function <builtin_manifest_toml_ex> call3 builtin_manifestTomlEx_array.jsonnet:11:28-40: function <builtin_manifest_toml_ex> call
4 field <array> evaluation4 field <array> evaluation
modifiedtests/go_testdata_golden_override/builtin_manifestTomlEx_cyclic.jsonnet.goldendiffbeforeafterboth
198 section <a> manifestification198 section <a> manifestification
199 section <b> manifestification199 section <b> manifestification
200 section <a> manifestification200 section <a> manifestification
201 builtin_manifestTomlEx_cyclic.jsonnet:1:19-38: function <builtin_manifest_toml_ex> call201 builtin_manifestTomlEx_cyclic.jsonnet:1:19-36: function <builtin_manifest_toml_ex> call
modifiedtests/go_testdata_golden_override/builtin_manifestTomlEx_null.jsonnet.goldendiffbeforeafterboth
1type error: expected object, got null1type error: expected object, got null
2 argument <value> evaluation2 argument <value> evaluation
3 builtin_manifestTomlEx_null.jsonnet:2:29-43: function <builtin_manifest_toml_ex> call3 builtin_manifestTomlEx_null.jsonnet:2:29-41: function <builtin_manifest_toml_ex> call
4 field <null> evaluation4 field <null> evaluation
modifiedtests/go_testdata_golden_override/builtin_manifestYamlDoc_cyclic.jsonnet.goldendiffbeforeafterboth
198 field <a> manifestification198 field <a> manifestification
199 field <a> manifestification199 field <a> manifestification
200 field <a> manifestification200 field <a> manifestification
201 builtin_manifestYamlDoc_cyclic.jsonnet:1:20-29: function <builtin_manifest_yaml_doc> call201 builtin_manifestYamlDoc_cyclic.jsonnet:1:20-27: function <builtin_manifest_yaml_doc> call
modifiedtests/go_testdata_golden_override/builtin_member_object_invalid.jsonnet.goldendiffbeforeafterboth
2 - expected array, got object2 - expected array, got object
3 - expected string, got object3 - expected string, got object
4 argument <arr> evaluation4 argument <arr> evaluation
5 builtin_member_object_invalid.jsonnet:1:11-32: function <builtin_member> call5 builtin_member_object_invalid.jsonnet:1:11-30: function <builtin_member> call
modifiedtests/go_testdata_golden_override/builtin_parseInt_invalid.jsonnet.goldendiffbeforeafterboth
1runtime error: "hello" is not a base 10 integer1runtime error: "hello" is not a base 10 integer
2 builtin_parseInt_invalid.jsonnet:1:13-23: function <builtin_parse_int> call2 builtin_parseInt_invalid.jsonnet:1:13-21: function <builtin_parse_int> call
modifiedtests/go_testdata_golden_override/builtin_parseInt_invalid_decimal.jsonnet.goldendiffbeforeafterboth
1runtime error: "123.12" is not a base 10 integer1runtime error: "123.12" is not a base 10 integer
2 builtin_parseInt_invalid_decimal.jsonnet:1:13-24: function <builtin_parse_int> call2 builtin_parseInt_invalid_decimal.jsonnet:1:13-22: function <builtin_parse_int> call
modifiedtests/go_testdata_golden_override/builtin_parseInt_invalid_hexadecimal.jsonnet.goldendiffbeforeafterboth
1runtime error: "7B316" is not a base 10 integer1runtime error: "7B316" is not a base 10 integer
2 builtin_parseInt_invalid_hexadecimal.jsonnet:1:13-23: function <builtin_parse_int> call2 builtin_parseInt_invalid_hexadecimal.jsonnet:1:13-21: function <builtin_parse_int> call
modifiedtests/go_testdata_golden_override/builtin_sqrt2.jsonnet.goldendiffbeforeafterboth
1type error: expected BoundedNumber<0, open>, got string1type error: expected BoundedNumber<0, open>, got string
2 argument <x> evaluation2 argument <x> evaluation
3 builtin_sqrt2.jsonnet:1:9-20: function <builtin_sqrt> call3 builtin_sqrt2.jsonnet:1:9-18: function <builtin_sqrt> call
modifiedtests/go_testdata_golden_override/builtin_stripChars_invalid.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got object1type error: expected string, got object
2 argument <str> evaluation2 argument <str> evaluation
3 builtin_stripChars_invalid.jsonnet:1:15-4133: function <builtin_strip_chars> call3 builtin_stripChars_invalid.jsonnet:1:15-4131: function <builtin_strip_chars> call
modifiedtests/go_testdata_golden_override/double_thunk.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 double_thunk.jsonnet:1:21-27: error statement2 double_thunk.jsonnet:1:21-25: error statement
modifiedtests/go_testdata_golden_override/error.jsonnet.goldendiffbeforeafterboth
1runtime error: 421runtime error: 42
2 error.jsonnet:1:1-7: error statement2 error.jsonnet:1:1-5: error statement
modifiedtests/go_testdata_golden_override/error_from_array.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 error_from_array.jsonnet:1:2-8: error statement2 error_from_array.jsonnet:1:2-6: error statement
3 error_from_array.jsonnet:1:15-17: element <0> access3 error_from_array.jsonnet:1:15-15: element <0> access
modifiedtests/go_testdata_golden_override/error_from_func.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 error_from_func.jsonnet:1:25-31: error statement2 error_from_func.jsonnet:1:25-29: error statement
3 error_from_func.jsonnet:1:37-45: function <foo> call3 error_from_func.jsonnet:1:37-43: function <foo> call
modifiedtests/go_testdata_golden_override/error_function_fail.jsonnet.goldendiffbeforeafterboth
1runtime error: tried to manifest function1runtime error: tried to manifest function
2 error_function_fail.jsonnet:1:1-7: error statement2 error_function_fail.jsonnet:1:1-5: error statement
modifiedtests/go_testdata_golden_override/error_hexnumber.jsonnet.goldendiffbeforeafterboth
1syntax error: expected end of file, got identifier "x42"1syntax error: expected end of file, got identifier "x42"
2 error_hexnumber.jsonnet:1:22 error_hexnumber.jsonnet:1:2
3 error_hexnumber.jsonnet:1:2-4: parse imported
modifiedtests/go_testdata_golden_override/error_in_method.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 error_in_method.jsonnet:1:23-29: error statement2 error_in_method.jsonnet:1:23-27: error statement
3 error_in_method.jsonnet:1:41-49: function <foo> call3 error_in_method.jsonnet:1:41-47: function <foo> call
modifiedtests/go_testdata_golden_override/error_in_object_local.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 error_in_object_local.jsonnet:1:20-26: error statement2 error_in_object_local.jsonnet:1:20-24: error statement
3 error_in_object_local.jsonnet:1:39-47: function <foo> call3 error_in_object_local.jsonnet:1:39-45: function <foo> call
4 field <baz> evaluation4 field <baz> evaluation
modifiedtests/go_testdata_golden_override/error_object.jsonnet.goldendiffbeforeafterboth
1runtime error: {"blah": 42}1runtime error: {"blah": 42}
2 error_object.jsonnet:1:1-7: error statement2 error_object.jsonnet:1:1-5: error statement
modifiedtests/go_testdata_golden_override/extvar_error.jsonnet.goldendiffbeforeafterboth
1external variable is not defined: errorVar1external variable is not defined: errorVar
2 extvar_error.jsonnet:1:11-24: function <builtin_ext_var> call2 extvar_error.jsonnet:1:11-22: function <builtin_ext_var> call
modifiedtests/go_testdata_golden_override/extvar_hermetic.jsonnet.goldendiffbeforeafterboth
1external variable is not defined: UndeclaredX1external variable is not defined: UndeclaredX
2 extvar_hermetic.jsonnet:1:25-41: function <builtin_ext_var> call2 extvar_hermetic.jsonnet:1:25-39: function <builtin_ext_var> call
modifiedtests/go_testdata_golden_override/extvar_not_a_string.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <x> evaluation2 argument <x> evaluation
3 extvar_not_a_string.jsonnet:1:11-16: function <builtin_ext_var> call3 extvar_not_a_string.jsonnet:1:11-14: function <builtin_ext_var> call
modifiedtests/go_testdata_golden_override/extvar_static_error.jsonnet.goldendiffbeforeafterboth
1external variable is not defined: staticErrorVar1external variable is not defined: staticErrorVar
2 extvar_static_error.jsonnet:1:11-30: function <builtin_ext_var> call2 extvar_static_error.jsonnet:1:11-28: function <builtin_ext_var> call
modifiedtests/go_testdata_golden_override/extvar_unknown.jsonnet.goldendiffbeforeafterboth
1external variable is not defined: UNKNOWN1external variable is not defined: UNKNOWN
2 extvar_unknown.jsonnet:1:11-23: function <builtin_ext_var> call2 extvar_unknown.jsonnet:1:11-21: function <builtin_ext_var> call
modifiedtests/go_testdata_golden_override/import_block_literal.jsonnet.goldendiffbeforeafterboth
1can't resolve block_literals_for_imports_are_not_allowed_and_make_exactly_zero_sense1import file not found block_literals_for_imports_are_not_allowed_and_make_exactly_zero_sense
2 from /home/lach/build/jrsonnet-pr/tests/go_testdata/import_block_literal.jsonnet2 from import_block_literal.jsonnet
modifiedtests/go_testdata_golden_override/import_syntax_error.jsonnet.goldendiffbeforeafterboth
1syntax error: unexpected end of file1syntax error: unexpected end of file
2 syntax_error.jsonnet:1:42 syntax_error.jsonnet:1:4
3 import_syntax_error.jsonnet:1:1-8: import3 syntax_error.jsonnet:1:4-0:0: parse imported
4 import_syntax_error.jsonnet:1:1-6: import
modifiedtests/go_testdata_golden_override/importbin_block_literal.jsonnet.goldendiffbeforeafterboth
1can't resolve block_literals_for_imports_are_not_allowed_and_make_exactly_zero_sense1import file not found block_literals_for_imports_are_not_allowed_and_make_exactly_zero_sense
2 from /home/lach/build/jrsonnet-pr/tests/go_testdata/importbin_block_literal.jsonnet2 from importbin_block_literal.jsonnet
modifiedtests/go_testdata_golden_override/importstr_block_literal.jsonnet.goldendiffbeforeafterboth
1can't resolve block_literals_for_imports_are_not_allowed_and_make_exactly_zero_sense1import file not found block_literals_for_imports_are_not_allowed_and_make_exactly_zero_sense
2 from /home/lach/build/jrsonnet-pr/tests/go_testdata/importstr_block_literal.jsonnet2 from importstr_block_literal.jsonnet
modifiedtests/go_testdata_golden_override/lazy_operator2.jsonnet.goldendiffbeforeafterboth
1runtime error: should happen1runtime error: should happen
2 lazy_operator2.jsonnet:1:9-15: error statement2 lazy_operator2.jsonnet:1:9-13: error statement
modifiedtests/go_testdata_golden_override/nonexistent_import.jsonnet.goldendiffbeforeafterboth
1can't resolve no chance a file with this name exists from /home/lach/build/jrsonnet-pr/tests/go_testdata/nonexistent_import.jsonnet1import file not found no chance a file with this name exists from nonexistent_import.jsonnet
modifiedtests/go_testdata_golden_override/nonexistent_import_crazy.jsonnet.goldendiffbeforeafterboth
1can't resolve ąęółńśćźż " ' 1import file not found ąęółńśćźż " '
22
3 from /home/lach/build/jrsonnet-pr/tests/go_testdata/nonexistent_import_crazy.jsonnet3 from nonexistent_import_crazy.jsonnet
modifiedtests/go_testdata_golden_override/object_comp_assert.jsonnet.goldendiffbeforeafterboth
1syntax error: asserts are unsupported in object comprehension1syntax error: asserts are unsupported in object comprehension
2 object_comp_assert.jsonnet:1:462 object_comp_assert.jsonnet:1:46
3 object_comp_assert.jsonnet:1:46-46: parse imported
modifiedtests/go_testdata_golden_override/object_comp_err_elem.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 object_comp_err_elem.jsonnet:1:11-17: error statement2 object_comp_err_elem.jsonnet:1:11-15: error statement
3 field <x> evaluation3 field <x> evaluation
modifiedtests/go_testdata_golden_override/object_comp_err_index.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 object_comp_err_index.jsonnet:1:4-10: error statement2 object_comp_err_index.jsonnet:1:4-8: error statement
3 evaluating field name3 evaluating field name
modifiedtests/go_testdata_golden_override/object_comp_illegal.jsonnet.goldendiffbeforeafterboth
1syntax error: missing object comprehension field1syntax error: missing object comprehension field
2 object_comp_illegal.jsonnet:1:342 object_comp_illegal.jsonnet:1:34
3 object_comp_illegal.jsonnet:1:34-34: parse imported
modifiedtests/go_testdata_golden_override/object_invariant10.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 object_invariant10.jsonnet:1:23-29: assertion failure2 object_invariant10.jsonnet:1:23-27: assertion failure
modifiedtests/go_testdata_golden_override/object_invariant11.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 object_invariant11.jsonnet:1:10-16: assertion failure2 object_invariant11.jsonnet:1:10-14: assertion failure
3 object_invariant11.jsonnet:1:18-20: field <x> access3 object_invariant11.jsonnet:1:18-18: field <x> access
modifiedtests/go_testdata_golden_override/object_invariant13.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 object_invariant13.jsonnet:1:10-16: error statement2 object_invariant13.jsonnet:1:10-14: error statement
3 object_invariant13.jsonnet:1:10-20: assertion condition3 object_invariant13.jsonnet:1:10-18: assertion condition
modifiedtests/go_testdata_golden_override/object_invariant14.jsonnet.goldendiffbeforeafterboth
1assert failed: xxx1assert failed: xxx
2 object_invariant14.jsonnet:1:10-16: assertion failure2 object_invariant14.jsonnet:1:10-14: assertion failure
modifiedtests/go_testdata_golden_override/object_invariant2.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 object_invariant2.jsonnet:1:10-16: assertion failure2 object_invariant2.jsonnet:1:10-14: assertion failure
modifiedtests/go_testdata_golden_override/object_invariant7.jsonnet.goldendiffbeforeafterboth
1no super found1no super found
2 object_invariant7.jsonnet:1:16-29: assertion condition2 object_invariant7.jsonnet:1:16-27: assertion condition
modifiedtests/go_testdata_golden_override/object_invariant8.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 object_invariant8.jsonnet:1:16-28: assertion failure2 object_invariant8.jsonnet:1:16-26: assertion failure
modifiedtests/go_testdata_golden_override/object_invariant9.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 object_invariant9.jsonnet:1:23-29: assertion failure2 object_invariant9.jsonnet:1:23-27: assertion failure
modifiedtests/go_testdata_golden_override/object_invariant_plus.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 object_invariant_plus.jsonnet:1:9-15: assertion failure2 object_invariant_plus.jsonnet:1:9-13: assertion failure
modifiedtests/go_testdata_golden_override/object_invariant_plus2.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 object_invariant_plus2.jsonnet:1:25-31: assertion failure2 object_invariant_plus2.jsonnet:1:25-29: assertion failure
modifiedtests/go_testdata_golden_override/object_invariant_plus6.jsonnet.goldendiffbeforeafterboth
1assert failed: xxx1assert failed: xxx
2 object_invariant_plus6.jsonnet:1:10-16: assertion failure2 object_invariant_plus6.jsonnet:1:10-14: assertion failure
modifiedtests/go_testdata_golden_override/optional_args11.jsonnet.goldendiffbeforeafterboth
1argument x is already bound1argument x is already bound
2 optional_args11.jsonnet:1:20-31: function <anonymous> preparation2 optional_args11.jsonnet:1:20-29: function <anonymous> preparation
modifiedtests/go_testdata_golden_override/optional_args13.jsonnet.goldendiffbeforeafterboth
1function argument is not passed: y1function argument is not passed: y
2Function has the following signature: (x, y)2Function has the following signature: (x, y)
3 optional_args13.jsonnet:1:20-27: function <anonymous> preparation3 optional_args13.jsonnet:1:20-25: function <anonymous> preparation
modifiedtests/go_testdata_golden_override/optional_args8.jsonnet.goldendiffbeforeafterboth
1parameter y is not defined1parameter y is not defined
2 optional_args8.jsonnet:2:4-11: function <foo> preparation2 optional_args8.jsonnet:2:4-9: function <foo> preparation
modifiedtests/go_testdata_golden_override/optional_args9.jsonnet.goldendiffbeforeafterboth
1argument x is already bound1argument x is already bound
2 optional_args9.jsonnet:1:16-27: function <builtin_id> preparation2 optional_args9.jsonnet:1:16-25: function <builtin_id> preparation
modifiedtests/go_testdata_golden_override/or4.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 or4.jsonnet:1:10-16: error statement2 or4.jsonnet:1:10-14: error statement
modifiedtests/go_testdata_golden_override/pow4.jsonnet.goldendiffbeforeafterboth
1convert num value: non-finite1convert num value: non-finite
2 pow4.jsonnet:1:8-18: function <builtin_pow> call2 pow4.jsonnet:1:8-16: function <builtin_pow> call
modifiedtests/go_testdata_golden_override/pow7.jsonnet.goldendiffbeforeafterboth
1convert num value: non-finite1convert num value: non-finite
2 pow7.jsonnet:2:8-24: function <builtin_pow> call2 pow7.jsonnet:2:8-22: function <builtin_pow> call
modifiedtests/go_testdata_golden_override/pow8.jsonnet.goldendiffbeforeafterboth
1type error: expected number, got string1type error: expected number, got string
2 argument <x> evaluation2 argument <x> evaluation
3 pow8.jsonnet:1:8-20: function <builtin_pow> call3 pow8.jsonnet:1:8-18: function <builtin_pow> call
modifiedtests/go_testdata_golden_override/pow9.jsonnet.goldendiffbeforeafterboth
1type error: expected number, got string1type error: expected number, got string
2 argument <n> evaluation2 argument <n> evaluation
3 pow9.jsonnet:1:8-20: function <builtin_pow> call3 pow9.jsonnet:1:8-18: function <builtin_pow> call
modifiedtests/go_testdata_golden_override/recursive_thunk.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 recursive_thunk.jsonnet:1:35-41: error statement2 recursive_thunk.jsonnet:1:35-39: error statement
3 recursive_thunk.jsonnet:2:19-39: function <bar> call3 recursive_thunk.jsonnet:2:19-37: function <bar> call
4 recursive_thunk.jsonnet:2:23-31: function <foo> call4 recursive_thunk.jsonnet:2:23-29: function <foo> call
5 recursive_thunk.jsonnet:2:19-39: function <bar> call5 recursive_thunk.jsonnet:2:19-37: function <bar> call
6 recursive_thunk.jsonnet:2:23-31: function <foo> call6 recursive_thunk.jsonnet:2:23-29: function <foo> call
7 recursive_thunk.jsonnet:2:19-39: function <bar> call7 recursive_thunk.jsonnet:2:19-37: function <bar> call
8 recursive_thunk.jsonnet:3:4-8: function <foo> call8 recursive_thunk.jsonnet:3:4-6: function <foo> call
modifiedtests/go_testdata_golden_override/stacktrace_assert.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 stacktrace_assert.jsonnet:1:10-16: assertion failure2 stacktrace_assert.jsonnet:1:10-14: assertion failure
modifiedtests/go_testdata_golden_override/static_error_eof.jsonnet.goldendiffbeforeafterboth
1syntax error: expected ';', got end of file1syntax error: expected ';', got end of file
2 static_error_eof.jsonnet:1:122 static_error_eof.jsonnet:1:12
3 static_error_eof.jsonnet:1:12-0:0: parse imported
modifiedtests/go_testdata_golden_override/std.codepoint3.jsonnet.goldendiffbeforeafterboth
1type error: expected char, got string1type error: expected char, got string
2 argument <str> evaluation2 argument <str> evaluation
3 std.codepoint3.jsonnet:1:14-21: function <builtin_codepoint> call3 std.codepoint3.jsonnet:1:14-19: function <builtin_codepoint> call
modifiedtests/go_testdata_golden_override/std.codepoint6.jsonnet.goldendiffbeforeafterboth
1type error: expected char, got string1type error: expected char, got string
2 argument <str> evaluation2 argument <str> evaluation
3 std.codepoint6.jsonnet:1:14-19: function <builtin_codepoint> call3 std.codepoint6.jsonnet:1:14-17: function <builtin_codepoint> call
modifiedtests/go_testdata_golden_override/std.codepoint7.jsonnet.goldendiffbeforeafterboth
1type error: expected char, got string1type error: expected char, got string
2 argument <str> evaluation2 argument <str> evaluation
3 std.codepoint7.jsonnet:2:0-2:0: function <builtin_codepoint> call3 std.codepoint7.jsonnet:2:14-0:0: function <builtin_codepoint> call
modifiedtests/go_testdata_golden_override/std.codepoint8.jsonnet.goldendiffbeforeafterboth
1type error: expected char, got number1type error: expected char, got number
2 argument <str> evaluation2 argument <str> evaluation
3 std.codepoint8.jsonnet:1:14-19: function <builtin_codepoint> call3 std.codepoint8.jsonnet:1:14-17: function <builtin_codepoint> call
modifiedtests/go_testdata_golden_override/std.filter2.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 std.filter2.jsonnet:1:12-18: error statement2 std.filter2.jsonnet:1:12-16: error statement
3 argument <func> evaluation3 argument <func> evaluation
4 std.filter2.jsonnet:1:11-27: function <builtin_filter> call4 std.filter2.jsonnet:1:11-25: function <builtin_filter> call
modifiedtests/go_testdata_golden_override/std.filter4.jsonnet.goldendiffbeforeafterboth
1type error: expected function, got number1type error: expected function, got number
2 argument <func> evaluation2 argument <func> evaluation
3 std.filter4.jsonnet:1:11-20: function <builtin_filter> call3 std.filter4.jsonnet:1:11-18: function <builtin_filter> call
modifiedtests/go_testdata_golden_override/std.filter5.jsonnet.goldendiffbeforeafterboth
1type error: expected array, got number1type error: expected array, got number
2 argument <arr> evaluation2 argument <arr> evaluation
3 std.filter5.jsonnet:1:11-32: function <builtin_filter> call3 std.filter5.jsonnet:1:11-30: function <builtin_filter> call
modifiedtests/go_testdata_golden_override/std.filter6.jsonnet.goldendiffbeforeafterboth
1type error: expected function, got number1type error: expected function, got number
2 argument <func> evaluation2 argument <func> evaluation
3 std.filter6.jsonnet:1:11-22: function <builtin_filter> call3 std.filter6.jsonnet:1:11-20: function <builtin_filter> call
modifiedtests/go_testdata_golden_override/std.filter8.jsonnet.goldendiffbeforeafterboth
1type error: expected function, got array1type error: expected function, got array
2 argument <func> evaluation2 argument <func> evaluation
3 std.filter8.jsonnet:1:11-37: function <builtin_filter> call3 std.filter8.jsonnet:1:11-35: function <builtin_filter> call
modifiedtests/go_testdata_golden_override/std.filter_swapped_args.jsonnet.goldendiffbeforeafterboth
1type error: expected function, got array1type error: expected function, got array
2 argument <func> evaluation2 argument <func> evaluation
3 std.filter_swapped_args.jsonnet:1:11-39: function <builtin_filter> call3 std.filter_swapped_args.jsonnet:1:11-37: function <builtin_filter> call
modifiedtests/go_testdata_golden_override/std.flatmap5.jsonnet.goldendiffbeforeafterboth
1runtime error: a1runtime error: a
2 std.flatmap5.jsonnet:1:21-27: error statement2 std.flatmap5.jsonnet:1:21-25: error statement
3 std.flatmap5.jsonnet:2:21-49: function <builtin_flatmap> call3 std.flatmap5.jsonnet:2:21-47: function <builtin_flatmap> call
4 argument <x> evaluation4 argument <x> evaluation
5 std.flatmap5.jsonnet:2:9-50: function <builtin_type> call5 std.flatmap5.jsonnet:2:9-48: function <builtin_type> call
modifiedtests/go_testdata_golden_override/std.join7.jsonnet.goldendiffbeforeafterboth
1runtime error: in std.join all items should be strings1runtime error: in std.join all items should be strings
2 std.join7.jsonnet:1:9-28: function <builtin_join> call2 std.join7.jsonnet:1:9-26: function <builtin_join> call
modifiedtests/go_testdata_golden_override/std.join8.jsonnet.goldendiffbeforeafterboth
1runtime error: in std.join all items should be arrays1runtime error: in std.join all items should be arrays
2 std.join8.jsonnet:1:9-34: function <builtin_join> call2 std.join8.jsonnet:1:9-32: function <builtin_join> call
modifiedtests/go_testdata_golden_override/std.makeArrayNamed3.jsonnet.goldendiffbeforeafterboth
1parameter blahblah is not defined1parameter blahblah is not defined
2 std.makeArrayNamed3.jsonnet:1:14-55: function <builtin_make_array> preparation2 std.makeArrayNamed3.jsonnet:1:14-53: function <builtin_make_array> preparation
modifiedtests/go_testdata_golden_override/std.makeArray_bad.jsonnet.goldendiffbeforeafterboth
1type error: expected BoundedNumber<0, 4294967295>, got string1type error: expected BoundedNumber<0, 4294967295>, got string
2 argument <sz> evaluation2 argument <sz> evaluation
3 std.makeArray_bad.jsonnet:1:14-37: function <builtin_make_array> call3 std.makeArray_bad.jsonnet:1:14-35: function <builtin_make_array> call
modifiedtests/go_testdata_golden_override/std.makeArray_bad2.jsonnet.goldendiffbeforeafterboth
1type error: expected function, got string1type error: expected function, got string
2 argument <func> evaluation2 argument <func> evaluation
3 std.makeArray_bad2.jsonnet:1:14-26: function <builtin_make_array> call3 std.makeArray_bad2.jsonnet:1:14-24: function <builtin_make_array> call
modifiedtests/go_testdata_golden_override/std.makeArray_noninteger.jsonnet.goldendiffbeforeafterboth
1runtime error: cannot convert number with fractional part to u321runtime error: cannot convert number with fractional part to u32
2 argument <sz> evaluation2 argument <sz> evaluation
3 std.makeArray_noninteger.jsonnet:1:14-35: function <builtin_make_array> call3 std.makeArray_noninteger.jsonnet:1:14-33: function <builtin_make_array> call
modifiedtests/go_testdata_golden_override/std.makeArray_noninteger_big.jsonnet.goldendiffbeforeafterboth
1type error: number out of bounds: 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 not in 0..42949672951type error: number out of bounds: 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 not in 0..4294967295
2 argument <sz> evaluation2 argument <sz> evaluation
3 std.makeArray_noninteger_big.jsonnet:1:14-37: function <builtin_make_array> call3 std.makeArray_noninteger_big.jsonnet:1:14-35: function <builtin_make_array> call
modifiedtests/go_testdata_golden_override/std.manifestYamlDoc_error.jsonnet.goldendiffbeforeafterboth
1runtime error: foo1runtime error: foo
2 std.manifestYamlDoc_error.jsonnet:1:31-37: error statement2 std.manifestYamlDoc_error.jsonnet:1:31-35: error statement
3 field <y> evaluation3 field <y> evaluation
4 field <x> manifestification4 field <x> manifestification
5 std.manifestYamlDoc_error.jsonnet:1:20-48: function <builtin_manifest_yaml_doc> call5 std.manifestYamlDoc_error.jsonnet:1:20-46: function <builtin_manifest_yaml_doc> call
modifiedtests/go_testdata_golden_override/std.maxArrayOnEmpty.jsonnet.goldendiffbeforeafterboth
1runtime error: expected non-empty array1runtime error: expected non-empty array
2 std.maxArrayOnEmpty.jsonnet:1:13-18: function <builtin_max_array> call2 std.maxArrayOnEmpty.jsonnet:1:13-16: function <builtin_max_array> call
modifiedtests/go_testdata_golden_override/std.md5_6.jsonnet.goldendiffbeforeafterboth
1type error: expected string, got number1type error: expected string, got number
2 argument <s> evaluation2 argument <s> evaluation
3 std.md5_6.jsonnet:1:8-13: function <builtin_md5> call3 std.md5_6.jsonnet:1:8-11: function <builtin_md5> call
modifiedtests/go_testdata_golden_override/std.minArrayOnEmpty.jsonnet.goldendiffbeforeafterboth
1runtime error: expected non-empty array1runtime error: expected non-empty array
2 std.minArrayOnEmpty.jsonnet:1:13-18: function <builtin_min_array> call2 std.minArrayOnEmpty.jsonnet:1:13-16: function <builtin_min_array> call
modifiedtests/go_testdata_golden_override/std.modulo2.jsonnet.goldendiffbeforeafterboth
1type error: expected number, got string1type error: expected number, got string
2 argument <x> evaluation2 argument <x> evaluation
3 std.modulo2.jsonnet:1:11-23: function <builtin_modulo> call3 std.modulo2.jsonnet:1:11-21: function <builtin_modulo> call
modifiedtests/go_testdata_golden_override/std.modulo3.jsonnet.goldendiffbeforeafterboth
1type error: expected number, got string1type error: expected number, got string
2 argument <x> evaluation2 argument <x> evaluation
3 std.modulo3.jsonnet:1:11-23: function <builtin_modulo> call3 std.modulo3.jsonnet:1:11-21: function <builtin_modulo> call
modifiedtests/go_testdata_golden_override/std.primitiveEquals10.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 std.primitiveEquals10.jsonnet:1:21-27: error statement2 std.primitiveEquals10.jsonnet:1:21-25: error statement
3 argument <x> evaluation3 argument <x> evaluation
4 std.primitiveEquals10.jsonnet:1:20-36: function <builtin_primitive_equals> call4 std.primitiveEquals10.jsonnet:1:20-34: function <builtin_primitive_equals> call
modifiedtests/go_testdata_golden_override/std.primitiveEquals13.jsonnet.goldendiffbeforeafterboth
1runtime error: primitiveEquals operates on primitive types, got array1runtime error: primitiveEquals operates on primitive types, got array
2 std.primitiveEquals13.jsonnet:1:20-29: function <builtin_primitive_equals> call2 std.primitiveEquals13.jsonnet:1:20-27: function <builtin_primitive_equals> call
modifiedtests/go_testdata_golden_override/std.primitiveEquals6.jsonnet.goldendiffbeforeafterboth
1runtime error: primitiveEquals operates on primitive types, got object1runtime error: primitiveEquals operates on primitive types, got object
2 std.primitiveEquals6.jsonnet:1:20-29: function <builtin_primitive_equals> call2 std.primitiveEquals6.jsonnet:1:20-27: function <builtin_primitive_equals> call
modifiedtests/go_testdata_golden_override/std.primitiveEquals7.jsonnet.goldendiffbeforeafterboth
1runtime error: cannot test equality of functions1runtime error: cannot test equality of functions
2 std.primitiveEquals7.jsonnet:1:20-51: function <builtin_primitive_equals> call2 std.primitiveEquals7.jsonnet:1:20-49: function <builtin_primitive_equals> call
modifiedtests/go_testdata_golden_override/std.primitiveEquals9.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 std.primitiveEquals9.jsonnet:1:25-31: error statement2 std.primitiveEquals9.jsonnet:1:25-29: error statement
3 argument <y> evaluation3 argument <y> evaluation
4 std.primitiveEquals9.jsonnet:1:20-36: function <builtin_primitive_equals> call4 std.primitiveEquals9.jsonnet:1:20-34: function <builtin_primitive_equals> call
modifiedtests/go_testdata_golden_override/std.sort3.jsonnet.goldendiffbeforeafterboth
1runtime error: foo1runtime error: foo
2 std.sort3.jsonnet:1:16-22: error statement2 std.sort3.jsonnet:1:16-20: error statement
3 std.sort3.jsonnet:1:9-30: function <builtin_sort> call3 std.sort3.jsonnet:1:9-28: function <builtin_sort> call
modifiedtests/go_testdata_golden_override/std.sort4.jsonnet.goldendiffbeforeafterboth
1binary operation array < number is not implemented1binary operation array < number is not implemented
2 std.sort4.jsonnet:1:9-30: function <builtin_sort> call2 std.sort4.jsonnet:1:9-28: function <builtin_sort> call
modifiedtests/go_testdata_golden_override/std.toString5.jsonnet.goldendiffbeforeafterboth
1runtime error: x1runtime error: x
2 std.toString5.jsonnet:1:14-20: error statement2 std.toString5.jsonnet:1:14-18: error statement
3 argument <a> evaluation3 argument <a> evaluation
4 std.toString5.jsonnet:1:13-25: function <builtin_to_string> call4 std.toString5.jsonnet:1:13-23: function <builtin_to_string> call
modifiedtests/go_testdata_golden_override/strReplace3.jsonnet.goldendiffbeforeafterboth
1runtime error: `from` string must not be zero length1runtime error: `from` string must not be zero length
2 strReplace3.jsonnet:1:15-36: function <builtin_str_replace> call2 strReplace3.jsonnet:1:15-34: function <builtin_str_replace> call
modifiedtests/go_testdata_golden_override/supersugar8.jsonnet.goldendiffbeforeafterboth
1assert failed: null1assert failed: null
2 supersugar8.jsonnet:1:10-17: assertion failure2 supersugar8.jsonnet:1:10-15: assertion failure
modifiedtests/go_testdata_golden_override/syntax_error.jsonnet.goldendiffbeforeafterboth
1syntax error: unexpected end of file1syntax error: unexpected end of file
2 syntax_error.jsonnet:1:42 syntax_error.jsonnet:1:4
3 syntax_error.jsonnet:1:4-0:0: parse imported
modifiedtests/go_testdata_golden_override/tailstrict2.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 tailstrict2.jsonnet:1:13-19: error statement2 tailstrict2.jsonnet:1:13-17: error statement
3 tailstrict2.jsonnet:2:15-19: function <e> call3 tailstrict2.jsonnet:2:15-17: function <e> call
4 tailstrict2.jsonnet:2:19-27: function <anonymous> call4 tailstrict2.jsonnet:2:19-25: function <anonymous> call
modifiedtests/go_testdata_golden_override/too_many_arguments.jsonnet.goldendiffbeforeafterboth
1too many args, function has 31too many args, function has 3
2Function has the following signature: (x, y, z)2Function has the following signature: (x, y, z)
3 too_many_arguments.jsonnet:1:23-36: function <anonymous> preparation3 too_many_arguments.jsonnet:1:23-34: function <anonymous> preparation
modifiedtests/go_testdata_golden_override/type_error.jsonnet.goldendiffbeforeafterboth
1runtime error: xxx1runtime error: xxx
2 type_error.jsonnet:1:10-16: error statement2 type_error.jsonnet:1:10-14: error statement
3 argument <x> evaluation3 argument <x> evaluation
4 type_error.jsonnet:1:9-23: function <builtin_type> call4 type_error.jsonnet:1:9-21: function <builtin_type> call
modifiedtests/go_testdata_golden_override/unfinished_args.jsonnet.goldendiffbeforeafterboth
1syntax error: expected ')', got end of file1syntax error: expected ')', got end of file
2 unfinished_args.jsonnet:1:172 unfinished_args.jsonnet:1:17
3 unfinished_args.jsonnet:1:17-0:0: parse imported
modifiedtests/tests/cpp_test_suite.rsdiffbeforeafterboth
21fn run(file: &Path, root: &Path) -> String {21fn run(file: &Path, root: &Path) -> String {
22 let mut s = State::builder();22 let mut s = State::builder();
2323
24 let std_context = ContextInitializer::new(PathResolver::Relative(root.to_owned()));24 let resolver = PathResolver::Relative(root.to_owned());
25 let std_context = ContextInitializer::new(resolver.clone());
25 // C++ test suite26 // C++ test suite
26 std_context.add_ext_str("var1".into(), "test".into());27 std_context.add_ext_str("var1".into(), "test".into());
27 std_context28 std_context
59 let _entered = s.enter();60 let _entered = s.enter();
6061
61 let trace_format = CompactFormat {62 let trace_format = CompactFormat {
62 resolver: PathResolver::FileName,63 resolver: resolver.clone(),
63 max_trace: 20,64 max_trace: 20,
64 padding: 4,65 padding: 4,
65 };66 };
168 "string_times_number.jsonnet",169 "string_times_number.jsonnet",
169];170];
170171
171#[test]
172fn cpp_test_suite() -> io::Result<()> {172fn run_test_suite(root: PathBuf, root_override: PathBuf) -> io::Result<()> {
173 for root_dir in ["cpp_test_suite", "go_testdata"] {
174 let root_tests = PathBuf::from(env!("CARGO_MANIFEST_DIR"));173 dbg!(&root);
175 let root = root_tests.join(root_dir);
176 let root_override = root_tests.join(format!("{root_dir}_golden_override"));
177
178 for entry in fs::read_dir(&root).map_err(|e| io::Error::other(format!("failed to enumerate cpp_test_suite dir (Note: it needs to be cloned from C++ jsonnet repo for this test): {e}")))? {174 for entry in fs::read_dir(&root).map_err(|e| io::Error::other(format!("failed to enumerate test suite dir (Note: it needs to be cloned from upstream jsonnet repo for this test): {e}")))? {
179 let entry = entry?;175 let entry = entry?;
180 if entry.path().extension().is_none_or(|e| e != "jsonnet") {176 if entry.path().extension().is_none_or(|e| e != "jsonnet") {
181 continue;177 continue;
265 }261 }
266 println!("done!");262 println!("done!");
267 }263 }
268 }
269
270 jrsonnet_gcmodule::with_thread_object_space(ObjectSpace::leak);
271
272 Ok(())264 Ok(())
273}265}
266
267#[test]
268fn upstream_test_suite() -> io::Result<()> {
269 let manifest = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
270 if let Some(cpp_jsonnet) = std::env::var_os("CPP_JSONNET_FOR_TESTS") {
271 let path = PathBuf::from(cpp_jsonnet).join("test_suite");
272 let path_override = manifest.join("cpp_test_suite_golden_override");
273 run_test_suite(path, path_override)?;
274 } else {
275 eprintln!("no cpp jsonnet available for tests");
276 }
277 if let Some(go_jsonnet) = std::env::var_os("GO_JSONNET_FOR_TESTS") {
278 let path = PathBuf::from(go_jsonnet).join("testdata");
279 let path_override = manifest.join("go_testdata_golden_override");
280 run_test_suite(path, path_override)?;
281 } else {
282 eprintln!("no go jsonnet available for tests");
283 }
284
285 jrsonnet_gcmodule::with_thread_object_space(ObjectSpace::leak);
286
287 Ok(())
288}
274289
modifiedtests/tests/snapshots/golden__golden@issue187.rev.jsonnet.snapdiffbeforeafterboth
4input_file: tests/golden/issue187.rev.jsonnet4input_file: tests/golden/issue187.rev.jsonnet
5---5---
6runtime error: bad utf86runtime error: bad utf8
7 issue187.rev.jsonnet:1:15-92: function <builtin_decode_utf8> call7 issue187.rev.jsonnet:1:15-90: function <builtin_decode_utf8> call
88
modifiedtests/tests/snapshots/golden__golden@issue23.jsonnet.snapdiffbeforeafterboth
4input_file: tests/golden/issue23.jsonnet4input_file: tests/golden/issue23.jsonnet
5---5---
6infinite recursion detected6infinite recursion detected
7 issue23.jsonnet:1:1-8: import7 issue23.jsonnet:1:1-6: import
88
modifiedtests/tests/snapshots/golden__golden@issue40.jsonnet.snapdiffbeforeafterboth
4input_file: tests/golden/issue40.jsonnet4input_file: tests/golden/issue40.jsonnet
5---5---
6assert failed: is number6assert failed: is number
7 issue40.jsonnet:6:10-31: assertion failure7 issue40.jsonnet:6:10-29: assertion failure
8 issue40.jsonnet:9:19-32: function <builtin_manifest_json_ex> call8 issue40.jsonnet:9:19-30: function <builtin_manifest_json_ex> call
99
modifiedtests/tests/snapshots/golden__golden@test_assertThrow.jsonnet.snapdiffbeforeafterboth
4input_file: tests/golden/test_assertThrow.jsonnet4input_file: tests/golden/test_assertThrow.jsonnet
5---5---
6runtime error: expected argument to throw on evaluation, but it returned instead6runtime error: expected argument to throw on evaluation, but it returned instead
7 test_assertThrow.jsonnet:2:17-26: function <assert_throw> call7 test_assertThrow.jsonnet:2:17-24: function <assert_throw> call
88
modifiedxtask/Cargo.tomldiffbeforeafterboth
18xshell.workspace = true18xshell.workspace = true
19clap = { workspace = true, features = ["derive"] }19clap = { workspace = true, features = ["derive"] }
20
21[target.'cfg(target_os = "linux")'.dependencies]
22nix.workspace = true
2023
addedxtask/src/bench.rsdiffbeforeafterboth

no changes

modifiedxtask/src/main.rsdiffbeforeafterboth
1#[cfg(not(target_os = "linux"))]
2use anyhow::bail;
1use anyhow::Result;3use anyhow::Result;
2use clap::Parser;4use clap::Parser;
3use xshell::{Shell, cmd};5use xshell::{cmd, Shell};
46
7#[cfg(target_os = "linux")]
8mod bench;
5mod sourcegen;9mod sourcegen;
610
7#[derive(Parser)]11#[derive(Parser)]
35 test_file: String,39 test_file: String,
36 args: Vec<String>,40 args: Vec<String>,
37 },41 },
38 /// Update C++/Golang golden testsuites from git42 /// Benchmark a command: repeated runs, reports time + RSS stats (Linux only)
43 Bench {
44 #[arg(long, default_value_t = 10)]
45 runs: u32,
46 #[arg(long, default_value_t = 1)]
47 warmup: u32,
48 /// Show command output
49 #[arg(long, short = 'q')]
50 output: bool,
51 #[arg(trailing_var_arg = true, required = true)]
52 args: Vec<String>,
39 UpdateTestsuites,53 },
40}54}
4155
42fn main() -> Result<()> {56fn main() -> Result<()> {
107121
108 Ok(())122 Ok(())
109 }123 }
110 Opts::UpdateTestsuites => {
111 let _pushd = sh.push_dir("tests");124 #[cfg(target_os = "linux")]
112 let git_dir = sh.create_temp_dir()?;125 Opts::Bench {
113 let git_dir_path = git_dir.path();126 runs,
114 cmd!(127 warmup,
115 sh,128 output,
116 "git clone https://github.com/google/jsonnet.git --depth=1 {git_dir_path}/jsonnet"129 args,
117 )
118 .run()?;
119 cmd!(
120 sh,130 } => bench::bench_cmd(&args, runs, warmup, output),
121 "git clone https://github.com/google/go-jsonnet.git --depth=1 {git_dir_path}/go-jsonnet"
122 )
123 .run()?;
124 sh.remove_path("cpp_test_suite")?;
125 sh.remove_path("go_testdata")?;
126 sh.remove_path("cpp_perf_tests")?;
127 sh.remove_path("cpp_benchmarks")?;
128 sh.remove_path("go_builtin_benchmarks")?;
129 cmd!(sh, "mv {git_dir_path}/jsonnet/test_suite cpp_test_suite").run()?;
130 cmd!(sh, "mv {git_dir_path}/go-jsonnet/testdata go_testdata").run()?;
131 cmd!(sh, "mv {git_dir_path}/jsonnet/perf_tests cpp_perf_tests").run()?;
132 cmd!(sh, "mv {git_dir_path}/jsonnet/benchmarks cpp_benchmarks").run()?;
133 cmd!(
134 sh,
135 "mv {git_dir_path}/go-jsonnet/builtin-benchmarks go_builtin_benchmarks"
136 )
137 .run()?;
138
139 Ok(())
140 }
141 }131 }
142}132}
143133