MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / newHttpHandler

Function newHttpHandler

protocol/http/http_server_test.go:16–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14)
15
16func newHttpHandler() (*HttpHandler, error) {
17 options := config.DefaultOptions
18 options.DirPath = "/tmp/flydb"
19 db, err := engine.NewDB(options)
20 if err != nil {
21 return nil, err
22 }
23 Serve := NewHttpHandler(db)
24 return Serve, nil
25}
26
27func TestNewHTTPServer(t *testing.T) {
28 server, err := newHttpHandler()

Callers 6

TestNewHTTPServerFunction · 0.85
TestPutFunction · 0.85
TestDelFunction · 0.85
TestGetFunction · 0.85
TestPostFunction · 0.85
TestGetListKeysHandlerFunction · 0.85

Calls 2

NewDBFunction · 0.92
NewHttpHandlerFunction · 0.85

Tested by

no test coverage detected