cURL code with Tests Nippets

Hi,

I am trying to generate a code for each request in cURL. While generating the code in cURL, I am not getting the code which is in Tests where I wrote some snippets. How to include code which is in Tests and also the code in Pre-request Script in cURL

Thanks