From 7b1632ec71cc56dffa6eeca90fdf122331a5065f Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Sun, 14 Jan 2024 04:07:33 +0100 Subject: feat(tvix/eval): strengthen significantly catchable test suite Adds a bunch (notably certain overlapping) tests for catchable situations. This should cover many scenarios, argument is catchable, element in argument is catchable, function returns catchable in the middle of the processing, etc. Co-authored-by: Aspen Smith Change-Id: Icd722cf8dbc91a24f45cd540a328711e5826f76c Reviewed-on: https://cl.tvl.fyi/c/depot/+/10621 Reviewed-by: aspen Tested-by: BuildkiteCI --- .../eval-okay-builtins-type-of-propagate-catchable.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-builtins-type-of-propagate-catchable.nix (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-type-of-propagate-catchable.nix') diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-type-of-propagate-catchable.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-type-of-propagate-catchable.nix new file mode 100644 index 0000000000..4b70609bbf --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-type-of-propagate-catchable.nix @@ -0,0 +1,9 @@ +map (e: (builtins.tryEval (builtins.typeOf e)).success) [ + (builtins.throw "a") + { + a = builtins.throw "b"; + } + [ (builtins.throw "c") ] + (./xyz + (builtins.throw "p")) + # FIXME: test derivations and files. +] -- cgit 1.4.1