MCPcopy Index your code
hub / github.com/dnote/dnote / apiPatchBook

Function apiPatchBook

pkg/e2e/sync/testutils.go:184–186  ·  view source on GitHub ↗

apiPatchBook updates a book via the API

(t *testing.T, env testEnv, user database.User, uuid, payload, message string)

Source from the content-addressed store, hash-verified

182
183// apiPatchBook updates a book via the API
184func apiPatchBook(t *testing.T, env testEnv, user database.User, uuid, payload, message string) {
185 doHTTPReq(t, env, "PATCH", fmt.Sprintf("/v3/books/%s", uuid), payload, message, user)
186}
187
188// apiDeleteBook deletes a book via the API
189func apiDeleteBook(t *testing.T, env testEnv, user database.User, uuid, message string) {

Callers 1

TestSyncFunction · 0.85

Calls 1

doHTTPReqFunction · 0.85

Tested by 1

TestSyncFunction · 0.68