akshita babel

0

votes
0

answer
6

views

How to test a http function which takes folder as an input?

I have a http handler function(POST) which allows a user to upload a folder from a web browser application. The folder is passed from javascript code as array of files in folder and on backend (golang API) it is accepted as []*multipart.FileHeader. I am struggling in writing a go unit test for this...
akshita babel