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 <root@gws.fyi> Change-Id: Icd722cf8dbc91a24f45cd540a328711e5826f76c Reviewed-on: https://cl.tvl.fyi/c/depot/+/10621 Reviewed-by: aspen <root@gws.fyi> Tested-by: BuildkiteCI
14 lines
361 B
Nix
14 lines
361 B
Nix
map (e: (builtins.tryEval (builtins.toJSON e)).success) [
|
|
(builtins.throw "a")
|
|
{
|
|
a = builtins.throw "attribute a";
|
|
}
|
|
{
|
|
a.b.c.d.e.f.g.h.i = builtins.throw "deep i";
|
|
}
|
|
{
|
|
x = 32;
|
|
y = builtins.throw "second argument";
|
|
}
|
|
# FIXME(raitobezarius): we would like to test coercions, i.e. `toFile` and `derivation` containing throwables.
|
|
]
|