mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 18:29:36 +01:00
Rename MemorySourceAccessor::File::Directory::{contents -> entries}
This matches the "NAR Listing" JSON format, and also helps distinguish from regular file contents. Why we want to match that will become clear in the next comments, when we will in fact use (variations of) this data type for NAR listings.
This commit is contained in:
parent
5caebab63a
commit
437b9b9879
4 changed files with 10 additions and 10 deletions
|
|
@ -230,7 +230,7 @@ TEST_F(GitTest, both_roundrip)
|
|||
|
||||
auto files = make_ref<MemorySourceAccessor>();
|
||||
files->root = File::Directory{
|
||||
.contents{
|
||||
.entries{
|
||||
{
|
||||
"foo",
|
||||
File::Regular{
|
||||
|
|
@ -240,7 +240,7 @@ TEST_F(GitTest, both_roundrip)
|
|||
{
|
||||
"bar",
|
||||
File::Directory{
|
||||
.contents =
|
||||
.entries =
|
||||
{
|
||||
{
|
||||
"baz",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue