1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-23 02:39:37 +01:00
nix/src/libutil-test-support/tests
Robert Hensing d004c524b8 test: Change FAIL to throw
[FAIL()] is a macro with `return`, making it unsuitable for helpers.

This uses std::runtime_error, because gtest does not seem to provide an
exception type of its own for this purpose. [AssertionException] is for
a different use case.

[FAIL()]: https://google.github.io/googletest/reference/assertions.html#FAIL
[AssertionException]: 35d0c36560/docs/reference/testing.md (assertionexception-assertionexception)
2024-11-24 23:57:24 +01:00
..
characterization.hh Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
gtest-with-params.hh test: Change FAIL to throw 2024-11-24 23:57:24 +01:00
hash.cc Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
hash.hh Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
nix_api_util.hh test: Change FAIL to throw 2024-11-24 23:57:24 +01:00
string_callback.cc Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
string_callback.hh Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
tracing-file-system-object-sink.cc Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
tracing-file-system-object-sink.hh Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00