internal/archive: make archiveItem.add private

This commit is contained in:
Clayton Craft
2023-02-17 21:54:49 -08:00
parent fb52066d8f
commit 6fdc8937b5
3 changed files with 14 additions and 14 deletions

View File

@@ -180,7 +180,7 @@ func TestArchiveItemsAdd(t *testing.T) {
for _, st := range subtests {
t.Run(st.name, func(t *testing.T) {
a := archiveItems{items: st.inItems}
a.Add(st.inItem)
a.add(st.inItem)
if !reflect.DeepEqual(st.expected, a.items) {
t.Fatal("expected:", st.expected, " got: ", a.items)
}