1. A method, implemented at least in part by a computing device, the method comprising: receiving source code that comprises a plurality of code segments; providing a desired level of quality for the source code; analyzing the source code to assign a complexity measure to each of the plurality of code segments; and assigning a level of code coverage to each of the plurality of code segments based at least in part on the desired level of quality and the complexity measures.