From f52712e90b253238b1f126bfc994b4e3419cfe11 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Mon, 25 Sep 2023 07:09:58 +0000 Subject: [PATCH] added an ASCII drawing Signed-off-by: Xiaoxuan Wang --- internal/graph/deletablememory_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/internal/graph/deletablememory_test.go b/internal/graph/deletablememory_test.go index af14319c..5587174d 100644 --- a/internal/graph/deletablememory_test.go +++ b/internal/graph/deletablememory_test.go @@ -185,6 +185,22 @@ func TestDeletableMemory_IndexAndRemove(t *testing.T) { } } +/* ++---------A(index)--------+ +| | | +| | | +| | | +| | | +v v v +B(manifest) C(manifest) D(manifest) +| | | +| | | +| | | +| | | +| | | +| | v ++-->E(layer)<-+------->F(layer) +*/ func TestDeletableMemory_IndexAllAndPredecessors(t *testing.T) { testFetcher := cas.NewMemory() testDeletableMemory := NewDeletableMemory()