handler: add unit tests and benchmarks for document handler

This commit is contained in:
Muhammed Efe Cetin
2025-03-16 17:32:45 +03:00
committed by M. Efe Çetin
parent b5ee197ac7
commit dcd271438e
2 changed files with 231 additions and 1 deletions

View File

@@ -97,7 +97,6 @@ func (h *DocumentHandler) HandlePost(w http.ResponseWriter, r *http.Request) {
}
key := h.KeyGenerator.Generate(h.KeyLength)
fmt.Println(key)
h.Store.Set(key, buffer.String(), false)
logrus.WithField("key", key).Info("Added document")