MCPcopy Index your code
hub / github.com/python/cpython / test_is_in_code

Method test_is_in_code

Lib/idlelib/idle_test/test_hyperparser.py:102–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 self.assertTrue(p.is_in_string())
101
102 def test_is_in_code(self):
103 get = self.get_parser
104
105 p = get('1.0')
106 self.assertTrue(p.is_in_code())
107 p = get('1.1')
108 self.assertFalse(p.is_in_code())
109 p = get('2.5')
110 self.assertFalse(p.is_in_code())
111 p = get('3.4')
112 self.assertTrue(p.is_in_code())
113 p = get('3.6')
114 self.assertFalse(p.is_in_code())
115 p = get('4.14')
116 self.assertFalse(p.is_in_code())
117
118 def test_get_surrounding_bracket(self):
119 get = self.get_parser

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
is_in_codeMethod · 0.80
assertFalseMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected