INNER CODE UNIT · C#
rows
JetBrains/godot-support · debugger/debugger-worker-tests/src/ChildChunkingTests.cs:159
var rows = Split(0, ChunkSize * ChunkSize * ChunkSize + 1);
Assert.That(rows.Select(r => AsGroup(r).Label),
Is.EqualTo(new[] { "[0..999999]", "[1000000..1000000]" }));
// Walk only the first branch - materialising a million leaves is not the point of this test.
var level2 = AsGroup(rows[0]).Children.ToList();
Assert.That(level2, Has.Count.EqualTo(ChunkSize));
Assert.That(AsGroup(level2[0]).Label, Is.EqualTo("[0..9999]"));
var level3 = AsGroup(level2[0]).Children.ToList();
Assert.That(level3, Has.Count.EqualTo(ChunkSize));
Assert.That(AsGroup(level3[0]).Label, Is.EqualTo("[0..99]"));
Assert.That(AsGroup(level3[0]).Children, Is.All.InstanceOf<Leaf>());
}
// ---------------------------------------------------------------------------------------------------
// Every child is present, exactly once, in order
// ---------------------------------------------------------------------------------------------------