4 ms·
I thought you were looking for ways to DRY up creation of a set of mocks?
by AlexCoventry 5y ago
I thought you were looking for ways to DRY up creation of a set of mocks?
- Arnavion 5y agoI am. With the three mocks I gave, there are 2^3 - 1 = 7 possibilities of which mocks a particular test needs. Of these, three are degenerate cases of a single mock each which would be served by the individual make_* already, so that leaves four cases of make_foo* that you'd need to implement. With more than three mocks, this number grows rapidly.