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

Function apiDeleteBook

pkg/e2e/sync/testutils.go:189–191  ·  view source on GitHub ↗

apiDeleteBook deletes a book via the API

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

Source from the content-addressed store, hash-verified

187
188// apiDeleteBook deletes a book via the API
189func apiDeleteBook(t *testing.T, env testEnv, user database.User, uuid, message string) {
190 doHTTPReq(t, env, "DELETE", fmt.Sprintf("/v3/books/%s", uuid), "", message, user)
191}
192
193// apiCreateNote creates a note via the API and returns its UUID
194func apiCreateNote(t *testing.T, env testEnv, user database.User, bookUUID, body, message string) string {

Callers 3

TestSync_onewayFunction · 0.85
TestSync_twowayFunction · 0.85
TestSyncFunction · 0.85

Calls 1

doHTTPReqFunction · 0.85

Tested by 3

TestSync_onewayFunction · 0.68
TestSync_twowayFunction · 0.68
TestSyncFunction · 0.68