This question already has an answer here:
Suppose there is a function
get-data which returns a map of information about the id of the user passed in. Now this function uses 3 functions
source-c to get three different kinds of maps. Now we combine all these maps into one map and return from
When I test
get-data, should I test for existence of data for keys? Does it makes sense for this function to fail unit tests if one of
source-c fail? If thats function job is to combine data, and it's doing it, it should be enough, right?