4 ms·
You switched the context from a unit test to something different. Here, there I'd use something like this (changing some method names, too, since we're fixing
by jmull 5y ago
You switched the context from a unit test to something different.
Here, there I'd use something like this (changing some method names, too, since we're fixing names):
userInput := getUserInput()
validatedInput := validateUserInput()
ipAddress := parseIpAddress(validatedInput)
pathAddresses := getIpPathRouteTo(ipAddress)
I'm making some assumptions about what these methods do and return. E.g., if validate/validateUserInput does something more specific than general user input validation then it should have a more specific name and the variable its result is assigned to would too.