I built a simple ~ ish method that creates a URL of about 5 parts: base address, port, path, "action" and a set of parameters. Of these, only part of the address is mandatory, the remaining parts are optional. A valid URL must exit the method for each permutation of the input parameters, for example:
- the address
- address port
- address port
- address path
- address action
- path address action
- address port action
- Port Address Path Action
- address action parameters
- Path Path Action Parameter
- port port action parameters
- Port port path action parameter
andsoforth. , unit test , unit test, , .
, , (tm) ? () unit test ?
(rant) , -, (, ), , unit test , , , . , , , yanno. . (/)
( ) , , . (/)