示例#1
0
 def __init__(self):
     self.nodes = []
     self.lineCounter = LineCounter()
     self.__fileLineCountCache = None
示例#2
0
 def setUp(self):
     self.counter = LineCounter()
     self.file = self.mock()
     self.counter.fileOpener = self.mock()
     self.counter.fileOpener.expects(once()).open(eq("test.h")).will(
         return_value(self.file))