Hi arschles,
      I am go-lang beginner programmer 
     I am working on google compute engine API where createinstnace() 
method internally call authentication sign() function which print URL to 
visit and accept authentication code and generate and return oauth token 
which I used in  createinstnace to send authenticated request.
    link [1] 
<https://github.com/PratikDhanave/gocloud-v2/blob/authentication/compute/gce/instance.go#L158-L164>
 
    link [3] 
<https://github.com/PratikDhanave/gocloud-v2/blob/authentication/compute/gce/sign.go#L32-L35>
                  I really stuck how to write golang test when one function 
call other function internally. i.e. in this case createinstance() calls  
sign() 
function.
  
     Thank You for your valuable time. I am looking forward to your reply.
 Regards,
Pratik Dhanave

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to