tvl-depot/tvix/eval/src/tests
Profpatsch 5b2ba0efa1 refactor(tvix/eval): rewrite xml emitter to be simple-stupid
In order to be compatible with the nix XML generator, it’s easier to
generate the XML directly, instead of going through a library which we
have to bend to do what we need.

Removes dependency on `xml-rs`, which came with a full XML parser that
we didn’t use. Only takes a tiny bit of code for the XML escaping,
somewhat simplified.

I add a little escaping value, to make sure we have the same behaviour
as nix proper.

Interestingly enough, we never need to escape XML attribute names,
because the `builtins.toXML` format encodes user-defined values as
attribute keys only. So we only escape attribute values.

Fixes: https://b.tvl.fyi/issues/399
Change-Id: If4d407d324864b3bb9aa3160e2ec6889f7727127
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11697
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: Profpatsch <mail@profpatsch.de>
2024-05-22 10:32:55 +00:00
..
nix_tests feat(tvix/eval): implement builtins.hashFile 2024-02-29 10:58:21 +00:00
tvix_tests refactor(tvix/eval): rewrite xml emitter to be simple-stupid 2024-05-22 10:32:55 +00:00
mod.rs feat(tvix/eval/tests): compare .xml outputs 2024-01-25 11:37:35 +00:00
one_offs.rs refactor(tvix/eval): move Evaluation::{default,new_pure}() again 2024-01-18 14:24:40 +00:00