Skip to content

Commit

Permalink
Merge pull request #488 from onflow/fxamacker/avoid-using-unexported-…
Browse files Browse the repository at this point in the history
…Array-root-field-in-tests

Avoid using unexported `Array` fields in tests
  • Loading branch information
fxamacker authored Jan 30, 2025
2 parents 1c177a0 + a4d9406 commit 1b0eed1
Show file tree
Hide file tree
Showing 7 changed files with 551 additions and 529 deletions.
12 changes: 12 additions & 0 deletions array.go
Original file line number Diff line number Diff line change
Expand Up @@ -3243,6 +3243,18 @@ func (a *Array) Inlinable(maxInlineSize uint64) bool {
return a.root.Inlinable(maxInlineSize)
}

func (a *Array) rootSlab() ArraySlab {
return a.root
}

func (a *Array) hasParentUpdater() bool {
return a.parentUpdater != nil
}

func (a *Array) getMutableElementIndexCount() int {
return len(a.mutableElementIndex)
}

// Storable returns array a as either:
// - SlabIDStorable, or
// - inlined data slab storable
Expand Down
Loading

0 comments on commit 1b0eed1

Please sign in to comment.