Skip to content

Commit

Permalink
Avoid using unexported Array fields in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed Jan 27, 2025
1 parent 1c177a0 commit a8d5bb5
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 264 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 a8d5bb5

Please sign in to comment.