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

Function apiDeleteNote

pkg/e2e/sync/testutils.go:212–214  ·  view source on GitHub ↗

apiDeleteNote deletes a note via the API

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

Source from the content-addressed store, hash-verified

210
211// apiDeleteNote deletes a note via the API
212func apiDeleteNote(t *testing.T, env testEnv, user database.User, noteUUID, message string) {
213 doHTTPReq(t, env, "DELETE", fmt.Sprintf("/v3/notes/%s", noteUUID), "", message, user)
214}
215
216// doHTTPReq performs an authenticated HTTP request and checks for errors
217func doHTTPReq(t *testing.T, env testEnv, method, path, payload, message string, user database.User) *http.Response {

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