Help how to write golang test when one function call other function internally which is independent

30 views
Skip to first unread message

pratik dhanave

unread,
Jun 24, 2017, 10:31:33 PM6/24/17
to golang-nuts
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] 
    link [3]
                  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
Reply all
Reply to author
Forward
0 new messages