MCPcopy
hub / github.com/kopia/kopia / NewSetWithOptions

Function NewSetWithOptions

internal/bigmap/bigmap_set.go:32–39  ·  view source on GitHub ↗

NewSetWithOptions creates new Set with options.

(ctx context.Context, opt *Options)

Source from the content-addressed store, hash-verified

30
31// NewSetWithOptions creates new Set with options.
32func NewSetWithOptions(ctx context.Context, opt *Options) (*Set, error) {
33 inner, err := newInternalMapWithOptions(ctx, false, opt)
34 if err != nil {
35 return nil, err
36 }
37
38 return &Set{inner}, nil
39}

Callers 3

TestGrowingSetFunction · 0.92
TestGrowingSetFunction · 0.85
NewSetFunction · 0.85

Calls 1

Tested by 2

TestGrowingSetFunction · 0.74
TestGrowingSetFunction · 0.68