snix/third_party/nix/src/libutil
Griffin Smith d1653533a6 test(tvix): Cover scanForReferences in a test
Aded a few test cases covering the scanForReferences function, which had
been accidentally broken in 976a36c (which is now partially-reverted).
As part of this, since the test needed to generate hashes for store
paths, the logic in MakeStorePath to compress a sha256 hash down to 20
bytes and convert it to base32 has been extracted to a member function
on the Hash class.

Fixes: #34
Change-Id: Ie2d914688a80f42d0234d351a7cc0714fd15709e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1698
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-09 17:26:19 +00:00
..
affinity.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
affinity.hh style(3p/nix): Reformat project in Google C++ style 2020-05-17 16:31:57 +01:00
archive.cc chore(3p/nix): apply google-readability-casting 2020-08-08 22:16:02 +00:00
archive.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
args.cc chore(3p/nix): apply google-readability-casting 2020-08-08 22:16:02 +00:00
args.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
CMakeLists.txt refactor(tvix): Factor-out proto utilities 2020-08-09 01:52:59 +00:00
compression.cc chore(3p/nix): apply google-readability-casting 2020-08-08 22:16:02 +00:00
compression.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
config.cc fix(3p/nix): Use SkipEmpty in all calls to absl::StrSplit 2020-08-06 20:50:47 +00:00
config.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
finally.hh style(3p/nix): Reformat project in Google C++ style 2020-05-17 16:31:57 +01:00
hash.cc test(tvix): Cover scanForReferences in a test 2020-08-09 17:26:19 +00:00
hash.hh test(tvix): Cover scanForReferences in a test 2020-08-09 17:26:19 +00:00
istringstream_nocopy.hh style(3p/nix): Reformat project in Google C++ style 2020-05-17 16:31:57 +01:00
json.cc chore(3p/nix): apply google-readability-casting 2020-08-08 22:16:02 +00:00
json.hh style(3p/nix): Reformat project in Google C++ style 2020-05-17 16:31:57 +01:00
lazy.hh style(3p/nix): Add braces around single-line conditionals 2020-05-19 18:55:58 +01:00
lru-cache.hh style(3p/nix): Add braces around single-line conditionals 2020-05-19 18:55:58 +01:00
monitor-fd.hh style(3p/nix): Add braces around single-line conditionals 2020-05-19 18:55:58 +01:00
pool.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
proto.hh refactor(tvix): Factor-out proto utilities 2020-08-09 01:52:59 +00:00
ref.hh style(3p/nix): Add braces around single-line conditionals 2020-05-19 18:55:58 +01:00
serialise.cc chore(3p/nix): apply google-readability-casting 2020-08-08 22:16:02 +00:00
serialise.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
sync.hh style(3p/nix): Reformat project in Google C++ style 2020-05-17 16:31:57 +01:00
thread-pool.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
thread-pool.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
types.hh fix(3p/nix/hash): provide a Status-returning constructor 2020-07-28 02:04:42 +00:00
util.cc chore(3p/nix): apply google-readability-casting 2020-08-08 22:16:02 +00:00
util.hh fix(3p/nix): revert "apply all clang-tidy fixes" 2020-08-01 22:45:15 +00:00
visitor.hh feat(3p/nix/libutil): Add util::overloaded class for std::visitor 2020-07-13 20:14:49 +00:00
xml-writer.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
xml-writer.hh style(3p/nix): Remove 'using std::*' from xml-writer.hh 2020-05-24 23:19:09 +01:00