lix/tests/unit/libexpr
piegames ec7552ff74 libexpr/parser: Test experimental features
Currently, the parser relies on the global experimental feature flags.
In order to properly test conditional language features, we instead need
to pass it around in the parser::State.

This means that the parser cannot cache the result of isEnabled anymore,
which wouldn't necessarily hurt performance if the function didn't
perform a linear search on the list of enabled features on every single
call. While we could simply evaluate once at the start of parsing and
cache the result in the parser state, the more sustainable solution
would be to fix `isEnabled` such that all callers may profit from the
performance improvement.

Change-Id: Ic9b9c5d882b6270e1114988b63e6064d36c25cf2
2024-08-07 13:07:50 +00:00
..
value libexpr/print: do not show elided nested items when there are none 2024-07-18 18:41:34 +02:00
derived-path.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
error_traces.cc Merge pull request #9925 from 9999years/fmt-cleanup 2024-03-09 07:00:13 -07:00
expr-print.cc add an impl of Expr::show for ExprInheritFrom that doesn't crash 2024-07-04 15:55:38 -06:00
flakeref.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
json.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
primops.cc builtins.nixVersion: return fixed fake version 2024-03-17 00:32:19 -07:00
search-path.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
trivial.cc libexpr/parser: Test experimental features 2024-08-07 13:07:50 +00:00