github.com/ethersphere/bee/v2@v2.2.0/pkg/storer/internal/upload/export_test.go (about)

     1  // Copyright 2022 The Swarm Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package upload
     6  
     7  import "time"
     8  
     9  var (
    10  	ErrPushItemMarshalAddressIsZero = errPushItemMarshalAddressIsZero
    11  	ErrPushItemMarshalBatchInvalid  = errPushItemMarshalBatchInvalid
    12  	ErrPushItemUnmarshalInvalidSize = errPushItemUnmarshalInvalidSize
    13  
    14  	ErrTagItemUnmarshalInvalidSize = errTagItemUnmarshalInvalidSize
    15  
    16  	ErrUploadItemMarshalAddressIsZero = errUploadItemMarshalAddressIsZero
    17  	ErrUploadItemMarshalBatchInvalid  = errUploadItemMarshalBatchInvalid
    18  	ErrUploadItemUnmarshalInvalidSize = errUploadItemUnmarshalInvalidSize
    19  
    20  	ErrPutterAlreadyClosed       = errPutterAlreadyClosed
    21  	ErrOverwriteOfImmutableBatch = errOverwriteOfImmutableBatch
    22  	ErrOverwriteOfNewerBatch     = errOverwriteOfNewerBatch
    23  
    24  	ErrNextTagIDUnmarshalInvalidSize = errNextTagIDUnmarshalInvalidSize
    25  
    26  	ErrDirtyTagItemUnmarshalInvalidSize = errDirtyTagItemUnmarshalInvalidSize
    27  )
    28  
    29  type (
    30  	PushItem     = pushItem
    31  	UploadItem   = uploadItem
    32  	NextTagID    = nextTagID
    33  	DirtyTagItem = dirtyTagItem
    34  )
    35  
    36  func ReplaceTimeNow(fn func() time.Time) { now = fn }