lix/src
eldritch horrors c26599b143 libexpr: fix elided value counting in printer
using the total-attrs-printed and total-list-items-printed counters to
calculate how many attrs were elided only works properly if no nesting
is involved. once things do nest the global counter can exceed the size
of the currently printed object, leading to unsigned wrapping and great
overestimation of elided counts. counting locally in addition to global
counts fixes this.

these are functional tests because creating these objects requires the
evaluator to not be a huge amount of code, and we also want defaults to
be tested for cli usage.

fixes #14

Change-Id: Icb9a0cb21b2f4bacbc5e9dcdd8c0b9055b4088a7
2024-03-14 01:52:19 -06:00
..
build-remote Merge pull request #9925 from 9999years/fmt-cleanup 2024-03-09 07:00:13 -07:00
libcmd add automated usage mode to the repl 2024-03-11 14:14:43 -07:00
libexpr libexpr: fix elided value counting in printer 2024-03-14 01:52:19 -06:00
libfetchers Merge pull request #9324 from 9999years/fix-8854-take-2 2024-03-07 14:50:43 +01:00
libmain util.hh: split out signals stuff 2024-03-11 00:52:09 -07:00
libstore util.hh: split out signals stuff 2024-03-11 00:52:09 -07:00
libutil add automated usage mode to the repl 2024-03-11 14:14:43 -07:00
nix Merge "util.hh: split out signals stuff" into main 2024-03-11 11:14:24 -06:00
nix-build Merge pull request #9582 from pennae/misc-opts 2024-03-04 07:32:31 +01:00
nix-channel Merge pull request #10054 from syvb/channel-unpack-count 2024-03-04 09:25:17 +01:00
nix-collect-garbage util.hh: split out signals stuff 2024-03-11 00:52:09 -07:00
nix-copy-closure Merge pull request #9277 from keszybz/file-permissions 2024-03-04 05:26:17 +01:00
nix-env Unify and refactor value printing 2024-03-09 03:50:06 +01:00
nix-instantiate Unify and refactor value printing 2024-03-09 03:50:06 +01:00
nix-store libexpr: Support structured error classes 2024-03-09 04:47:05 -07:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00