Skip to content

Commit

Permalink
added an ASCII drawing
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Sep 25, 2023
1 parent 140c11f commit f52712e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions internal/graph/deletablememory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f52712e

Please sign in to comment.