in reply to Re: Flickr OAuth module and testing
in thread Flickr OAuth module and testing

My module operates on a very basic level and does not really deal itself with failures and return codes. It just "manages" the OAuth protocol by
  1. crafting the messages based upon the IDs and secret codes provided, as well as tags, filenames, ... etc; and
  2. "carrying" these specially crafted messages to the Flickr OAUth-equipped server and obtaining a result code, JSON message or XML result (as the case may be)

It is then up to the user to validate this reply.

I think I can refactor my module into "crafting" subs and "transport" subs and test the "crafting" subs to see they conform to the OAuth standards en then test the "transport" layer only in case the user has provided his IDs and secret codes through some ENV-variables.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics