Exemple #1
0
 def test_3(self):
     """Ignore warning from ctags"""
     tags = processText('Python',
                        'ctags: Warning: something happened\n' + PY_CODE,
                        False)
     ref = {('Cls', 2): {('foobar', 3): {('func', 4): {}}}}
     self.assertEqual(asDicts(tags), ref)
Exemple #2
0
 def test_3(self):
     """Ignore warning from ctags"""
     tags = processText('Python',
                        'ctags: Warning: something happened\n' + PY_CODE,
                        False)
     ref = {('Cls', 2): {('foobar', 3): {('func', 4): {}}}}
     self.assertEqual(asDicts(tags), ref)
Exemple #3
0
 def test_1(self):
     tags = processText('C++', CPP_CODE, False)
     ref = {
         ('Func', 2): {},
         ('Cls', 7): {
             ('FirstMethod', 7): {},
             ('SecondMethod', 12): {}
         }
     }
     self.assertEqual(asDicts(tags), ref)
Exemple #4
0
 def test_2(self):
     tags = processText('Python', PY_CODE, False)
     ref = {('Cls', 1): {('foobar', 2): {('func', 3): {}}}}
     self.assertEqual(asDicts(tags), ref)
Exemple #5
0
 def test_1(self):
     tags = processText('C++', CPP_CODE, False)
     ref = {('Func', 2): {}, ('Cls', 7): {('FirstMethod', 7): {}, ('SecondMethod', 12): {}}}
     self.assertEqual(asDicts(tags), ref)
Exemple #6
0
 def test_2(self):
     tags = processText('Python', PY_CODE, False)
     ref = {('Cls', 1): {('foobar', 2): {('func', 3): {}}}}
     self.assertEqual(asDicts(tags), ref)