예제 #1
0
 def setUp(self):
     testfile = os.path.abspath(
         os.path.join(os.path.dirname(__file__), "sample.c"))
     self.queue = Queue()
     with open(testfile) as file:
         testfile_lines = file.readlines()
     self.uut = ClangASTPrintBear({testfile: testfile_lines},
                                  Section("name"), self.queue)
예제 #2
0
 def setUp(self):
     self.testfile = os.path.abspath(
         os.path.join(os.path.dirname(__file__), "sample.c"))
     self.queue = Queue()
     self.uut = ClangASTPrintBear(Section("name"), self.queue)