MCPcopy Create free account
hub / github.com/DoNewsCode/core / TestNewManager

Function TestNewManager

ots3/uploader_test.go:17–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15)
16
17func TestNewManager(t *testing.T) {
18 t.Parallel()
19 assert.NotNil(t, NewManager(
20 "",
21 "",
22 "",
23 "",
24 "",
25 WithTracer(opentracing.GlobalTracer()),
26 WithPathPrefix(""),
27 WithHTTPClient(http.DefaultClient),
28 WithLocationFunc(func(location string) (url string) {
29 return ""
30 }),
31 WithKeyer(key.New()),
32 WithAutoExtension(true),
33 ))
34}
35
36func TestManager_CreateBucket(t *testing.T) {
37 t.Parallel()

Callers

nothing calls this directly

Calls 8

NewFunction · 0.92
NewManagerFunction · 0.85
WithPathPrefixFunction · 0.85
WithHTTPClientFunction · 0.85
WithLocationFuncFunction · 0.85
WithKeyerFunction · 0.85
WithAutoExtensionFunction · 0.85
WithTracerFunction · 0.70

Tested by

no test coverage detected